Extend description of the partial merkle block format #4
pull sipa wants to merge 1 commits into bitcoin:master from sipa:bip37extend changing 1 files +34 −1-
sipa commented at 4:13 pm on December 27, 2013: member
-
Extend description of the partial merkle block format bda2aa1b0e
-
sipa commented at 4:13 pm on December 27, 2013: member@mikehearn @TheBlueMatt Look!
-
jgarzik commented at 4:17 pm on December 27, 2013: contributorSeems sane by quick review
-
mikehearn commented at 4:23 pm on December 27, 2013: contributorAwesome, thanks! Fixed comments in the code would be neat too :)
-
in bip-0037.mediawiki: in bda2aa1b0e
173+*** Descend into its left child tree, and store its computed hash as L. 174+*** If this node has a right child as well: 175+**** Descend into its right child, and store its computed hash as R. 176+**** If L == R, the partial merkle tree object is invalid. 177+**** Return Hash(L || R). 178+*** If this node has no right child, return Hash(L || L).
TheBlueMatt commented at 11:10 pm on December 27, 2013:Would be nice to add a note as to why this is necessary (“in the same way that hashes are repeated when building the full merkle tree”)TheBlueMatt commented at 11:10 pm on December 27, 2013: contributorNice, looks good.laanwj referenced this in commit bee6818965 on Jan 23, 2014laanwj merged this on Jan 23, 2014laanwj closed this on Jan 23, 2014
CodeShark referenced this in commit 3d2b3a8ebd on Dec 23, 2015luke-jr referenced this in commit c7fd6ddb2e on Mar 17, 2016justusranvier referenced this in commit da43de2dba on Jul 11, 2016real-or-random referenced this in commit ccd415fd89 on Aug 2, 2018t-bast referenced this in commit d62f6b14c4 on Apr 6, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 22:10 UTC
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 22:10 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me