From 9f3dc5d7a556664cd7640b8cac4687cfb17f474b Mon Sep 17 00:00:00 2001 From: William Swanson Date: Thu, 6 Mar 2014 17:15:33 -0800 Subject: 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". --- bip-0021.mediawiki | 4 ++-- 1 file 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 -- cgit v1.2.3