summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Swanson <swansontec@gmail.com>2014-03-06 17:15:33 -0800
committerWilliam Swanson <swansontec@gmail.com>2014-03-06 18:04:48 -0800
commit9f3dc5d7a556664cd7640b8cac4687cfb17f474b (patch)
tree6c8d46a9745375cde2d7447674558588b80036d2
parent6c06f31adadea2daa1707eede8056dd3c4daec20 (diff)
downloadbips-9f3dc5d7a556664cd7640b8cac4687cfb17f474b.tar.xz
BIP 21: Add a missing "&" rule to the ABNF grammar
The URI syntax uses an ampersand to separate query parameters, but the ABNF grammar didn't reflect this fact. Also, the type of grammar used here is "ABNF" and not "BNF".
-rw-r--r--bip-0021.mediawiki4
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0021.mediawiki b/bip-0021.mediawiki
index 8f2201b..9be8b9e 100644
--- a/bip-0021.mediawiki
+++ b/bip-0021.mediawiki
@@ -26,13 +26,13 @@ They SHOULD require the user to manually approve each payment individually, thou
=== Operating system integration ===
Graphical bitcoin clients SHOULD register themselves as the handler for the "bitcoin:" URI scheme by default, if no other handler is already registered. If there is already a registered handler, they MAY prompt the user to change it once when they first run the client.
-=== BNF grammar ===
+=== ABNF grammar ===
(See also [[#Simpler syntax|a simpler representation of syntax]])
bitcoinurn = "bitcoin:" bitcoinaddress [ "?" bitcoinparams ]
bitcoinaddress = base58 *base58
- bitcoinparams = *bitcoinparam
+ bitcoinparams = bitcoinparam [ "&" bitcoinparams ]
bitcoinparam = amountparam | labelparam | messageparam | otherparam | reqparam
amountparam = "amount=" *digit [ "." *digit ]
labelparam = "label=" *pchar