diff options
author | Marco Pontello <marcopon@gmail.com> | 2016-01-12 16:46:52 +0100 |
---|---|---|
committer | Marco Pontello <marcopon@gmail.com> | 2016-01-12 16:46:52 +0100 |
commit | 07b73c67dfa99cb13bf9e95dbbc3cad8d938936a (patch) | |
tree | 0962992b0a3e751fd34b4321a7b2ea836ff87b73 /bip-0122.mediawiki | |
parent | be76170385b5b3a38dcaadb9687592d2659faed0 (diff) | |
download | bips-07b73c67dfa99cb13bf9e95dbbc3cad8d938936a.tar.xz |
added ABNF grammar
Diffstat (limited to 'bip-0122.mediawiki')
-rw-r--r-- | bip-0122.mediawiki | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bip-0122.mediawiki b/bip-0122.mediawiki index 902aa02..d025873 100644 --- a/bip-0122.mediawiki +++ b/bip-0122.mediawiki @@ -23,7 +23,7 @@ The same happens with posts and messages that reference some particular txs or b The URI follow this form: - <nowiki>blockchain:[//chain]</type/hash></nowiki> + <nowiki>blockchain:[//<chain>]/<tx|block|address>/<hash></nowiki> 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=== |