mirror of
https://github.com/bitcoin/bips.git
synced 2026-03-23 16:05:41 +00:00
BIP 21: Precisely define the valid query characters
This commit is contained in:
@@ -41,10 +41,12 @@ Elements of the query component may contain characters outside the valid range.
|
|||||||
bitcoinparams = bitcoinparam [ "&" bitcoinparams ]
|
bitcoinparams = bitcoinparam [ "&" bitcoinparams ]
|
||||||
bitcoinparam = amountparam | labelparam | messageparam | otherparam | reqparam
|
bitcoinparam = amountparam | labelparam | messageparam | otherparam | reqparam
|
||||||
amountparam = "amount=" *digit [ "." *digit ]
|
amountparam = "amount=" *digit [ "." *digit ]
|
||||||
labelparam = "label=" *pchar
|
labelparam = "label=" *qchar
|
||||||
messageparam = "message=" *pchar
|
messageparam = "message=" *qchar
|
||||||
otherparam = pchar *pchar "=" *pchar
|
otherparam = qchar *qchar "=" *qchar
|
||||||
reqparam = "req-" pchar *pchar "=" *pchar
|
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.
|
||||||
|
|
||||||
=== Query Keys ===
|
=== Query Keys ===
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user