Skip to content

Commit

Permalink
added ABNF grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPon committed Jan 12, 2016
1 parent be76170 commit 07b73c6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion bip-0122.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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===

Expand Down

0 comments on commit 07b73c6

Please sign in to comment.