mirror of
https://github.com/bitcoin/bips.git
synced 2025-01-19 05:45:07 +01:00
added ABNF grammar
This commit is contained in:
parent
be76170385
commit
07b73c67df
@ -23,7 +23,7 @@ The same happens with posts and messages that reference some particular txs or b
|
|||||||
|
|
||||||
The URI follow this form:
|
The URI follow this form:
|
||||||
|
|
||||||
<nowiki>blockchain:[//chain]</type/hash></nowiki>
|
<nowiki>blockchain:[//<chain>]/<tx|block|address>/<hash></nowiki>
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
@ -52,6 +52,18 @@ Where:
|
|||||||
|
|
|
|
||||||
|}
|
|}
|
||||||
|
|
||||||
|
====ABNF grammar====
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
blockchainuri = "blockchain:" ["//" chain] "/" object
|
||||||
|
object = ("tx" "/" hash ) / ( "block" "/" (hash / blockheight ) ) /
|
||||||
|
( "address" "/" address )
|
||||||
|
chain = hash
|
||||||
|
hash = 64HEXDIG
|
||||||
|
blockheight = 1*15DIGIT ; 15 is somehow arbitrary, i.e. a "small" int.
|
||||||
|
address = base58 ; https://en.wikipedia.org/wiki/Base58
|
||||||
|
</pre>
|
||||||
|
|
||||||
----
|
----
|
||||||
===Definition of chain ID===
|
===Definition of chain ID===
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user