summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip-0021.mediawiki8
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.