1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

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".
This commit is contained in:
William Swanson 2014-03-06 17:15:33 -08:00
parent 6c06f31ada
commit 9f3dc5d7a5

View File

@ -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