summaryrefslogtreecommitdiff
path: root/bip-0122.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@xbt.hk>2016-01-19 11:49:44 +0800
committerJohnson Lau <jl2012@xbt.hk>2016-01-19 11:49:44 +0800
commit171c3929af95435198ab064ebf929686bbd940f4 (patch)
treecd1076c74661b94a47ccebd95f054fababba52ae /bip-0122.mediawiki
parent345f1c48fa0d1b78a765ea84d9c1dec22caa73e6 (diff)
parentf01ec3ff5ea48684b5b1e52165bd642028b80e0e (diff)
downloadbips-171c3929af95435198ab064ebf929686bbd940f4.tar.xz
Merge remote-tracking branch 'refs/remotes/bitcoin/master'
Diffstat (limited to 'bip-0122.mediawiki')
-rw-r--r--bip-0122.mediawiki16
1 files changed, 14 insertions, 2 deletions
diff --git a/bip-0122.mediawiki b/bip-0122.mediawiki
index 902aa02..d59e353 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===
@@ -109,4 +121,4 @@ Thanks to Richard Moore, Matt Whitlock, Andreas Schildbach for suggestions about
==Copyright==
-This document is placed in the public domain. \ No newline at end of file
+This document is placed in the public domain.