summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sztorc <psztorc01@gmail.com>2018-04-23 20:50:11 -0400
committerGitHub <noreply@github.com>2018-04-23 20:50:11 -0400
commit485b1318bd4a6f2e1378add714ce7af2cffee87b (patch)
tree84d34c5b546a0c35d8cf19a9a5031819398a8caf
parent5353f9ea23bb781672d90dccb0b11fdefcde8237 (diff)
downloadbips-485b1318bd4a6f2e1378add714ce7af2cffee87b.tar.xz
m7 op return update
This has been right in the code, but I kept forgetting to update the BIP.
-rw-r--r--bip-blind-merged-mining.mediawiki6
1 files changed, 3 insertions, 3 deletions
diff --git a/bip-blind-merged-mining.mediawiki b/bip-blind-merged-mining.mediawiki
index 29a735c..513a4b7 100644
--- a/bip-blind-merged-mining.mediawiki
+++ b/bip-blind-merged-mining.mediawiki
@@ -85,12 +85,12 @@ Mainchain nodes are going to need this data later, so it must be easy to find. W
==== M7 -- "Blind-Mine the Sidechain(s)" ====
-Thus, (for n sidechains) we have a coinbase output with:
+Thus, (for n sidechains) we have a coinbase output with multiple OP_RETURNs (we've changed the tx-standardness policy to allow multiple OP_RETURNs):
1-byte - OP_RETURN (0x6a)
- 1-byte - Push the following (4+(n*35)) bytes (0x??)
+ 1-byte - Push the following 39 bytes (0x27)
4-byte - Message header (0xD3407053)
- (n*(32+5))-byte - A sequence of bytes, of the three Mini-Header items (h*, prevBlockRef, ChainIndex).
+ 37-byte - A sequence of bytes, of the three Mini-Header items (h*, prevBlockRef, ChainIndex).
( We assume that 5 bytes are used for the Critical Data bytes (non h* parts of the Sidechain Mini-Header). For 256 sidechains, a total of 9,478 bytes [1+1+4+256\*(32+5)] are required, conveniently just below the 10 KB scriptPubKey size limit.)