Skip to content

Commit

Permalink
Merge pull request bitcoin#281 from MarcoPon/master
Browse files Browse the repository at this point in the history
added ABNF grammar
  • Loading branch information
luke-jr committed Jan 13, 2016
2 parents 5afe46e + 628a851 commit dc4071d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions 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 Expand Up @@ -109,4 +121,4 @@ Thanks to Richard Moore, Matt Whitlock, Andreas Schildbach for suggestions about

==Copyright==

This document is placed in the public domain.
This document is placed in the public domain.

0 comments on commit dc4071d

Please sign in to comment.