diff options
author | William Swanson <swansontec@gmail.com> | 2014-03-10 18:10:27 -0700 |
---|---|---|
committer | William Swanson <swansontec@gmail.com> | 2014-03-13 00:55:49 -0700 |
commit | 116129c6878a14415afba89e90b8ddd3a12b477e (patch) | |
tree | e7b77d6dde58399498abfcc9f5ef350078113ba7 /bip-0021.mediawiki | |
parent | 6f15f98b1256bfe097962b0e9ad56ed9c5e5ab7c (diff) |
BIP 21: Allow empty addresses and query parameters
Empty addresses should be valid for compatibility with BIP 72.
Empty query parameters should also be valid, since they are harmless,
and clients already accept them.
With these changes, bitcoin:?& would be a valid (but useless) URI.
Diffstat (limited to 'bip-0021.mediawiki')
-rw-r--r-- | bip-0021.mediawiki | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bip-0021.mediawiki b/bip-0021.mediawiki index 44cca1f..e64a71e 100644 --- a/bip-0021.mediawiki +++ b/bip-0021.mediawiki @@ -37,14 +37,14 @@ Elements of the query component may contain characters outside the valid range. (See also [[#Simpler syntax|a simpler representation of syntax]]) bitcoinurn = "bitcoin:" bitcoinaddress [ "?" bitcoinparams ] - bitcoinaddress = base58 *base58 + bitcoinaddress = *base58 bitcoinparams = bitcoinparam [ "&" bitcoinparams ] - bitcoinparam = amountparam | labelparam | messageparam | otherparam | reqparam + bitcoinparam = [ amountparam / labelparam / messageparam / otherparam / reqparam ] amountparam = "amount=" *digit [ "." *digit ] labelparam = "label=" *qchar messageparam = "message=" *qchar - otherparam = qchar *qchar "=" *qchar - reqparam = "req-" qchar *qchar "=" *qchar + otherparam = qchar *qchar [ "=" *qchar ] + reqparam = "req-" qchar *qchar [ "=" *qchar ] Here, "qchar" corresponds to valid characters of an RFC 3986 URI query component, excluding the "=" and "&" characters, which this BIP takes as separators. |