From 07b73c67dfa99cb13bf9e95dbbc3cad8d938936a Mon Sep 17 00:00:00 2001 From: Marco Pontello Date: Tue, 12 Jan 2016 16:46:52 +0100 Subject: [PATCH 1/2] added ABNF grammar --- bip-0122.mediawiki | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bip-0122.mediawiki b/bip-0122.mediawiki index 902aa02a54..d0258738b7 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: - blockchain:[//chain] + blockchain:[//]// Where: @@ -52,6 +52,18 @@ Where: | |} +====ABNF grammar==== + +
+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
+
+ ---- ===Definition of chain ID=== From 628a851062abbad73df8f48e3cd45dcffbdec914 Mon Sep 17 00:00:00 2001 From: MarcoPon Date: Tue, 12 Jan 2016 19:09:57 +0100 Subject: [PATCH 2/2] More consistent spacing. --- bip-0122.mediawiki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bip-0122.mediawiki b/bip-0122.mediawiki index d0258738b7..d59e353793 100644 --- a/bip-0122.mediawiki +++ b/bip-0122.mediawiki @@ -56,8 +56,8 @@ Where:
 blockchainuri = "blockchain:" ["//" chain] "/" object
-object = ("tx" "/" hash ) / ( "block" "/" (hash / blockheight ) ) /
-         ( "address" "/" address )
+object = ("tx" "/" hash) / ("block" "/" (hash / blockheight)) /
+         ("address" "/" address)
 chain = hash
 hash = 64HEXDIG
 blockheight = 1*15DIGIT ; 15 is somehow arbitrary, i.e. a "small" int.
@@ -121,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.