Gavin Andresen [ARCHIVE] on Nostr: ๐
Original date posted:2015-12-11 ๐ Original message:On Fri, Dec 11, 2015 at ...
๐
Original date posted:2015-12-11
๐ Original message:On Fri, Dec 11, 2015 at 11:18 AM, Jorge Timรณn <jtimon at jtimon.cc> wrote:
> This is basically what I meant by
>
> struct hashRootStruct
> {
> uint256 hashMerkleRoot;
> uint256 hashWitnessesRoot;
> uint256 hashextendedHeader;
> }
>
> but my design doesn't calculate other_root as it appears in your tree (is
> not necessary).
>
> It is necessary to maintain compatibility with SPV nodes/wallets.
Any code that just checks merkle paths up into the block header would have
to change if the structure of the merkle tree changed to be three-headed at
the top.
If it remains a binary tree, then it doesn't need to change at all-- the
code that produces the merkle paths will just send a path that is one step
deeper.
Plus, it's just weird to have a merkle tree that isn't a binary tree.....
--
--
Gavin Andresen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151211/2f95a032/attachment-0001.html>
Published at
2023-06-07 17:45:45Event JSON
{
"id": "03af0b26c94eb5cf53a169f9c67314d4385eb5b5d670ba8c2b0d1391281644bb",
"pubkey": "857f2f78dc1639e711f5ea703a9fc978e22ebd279abdea1861b7daa833512ee4",
"created_at": 1686159945,
"kind": 1,
"tags": [
[
"e",
"558b0da1f3869961bbef0556878e1dd6b9ae37e86128bc130bab17f5332c918d",
"",
"root"
],
[
"e",
"9fdeca4731a5201dd8a1a558f41d21dbdb248e3c61d8cffecfae241b8182cad0",
"",
"reply"
],
[
"p",
"498a711971f8a0194289aee037a4c481a99e731b5151724064973cc0e0b27c84"
]
],
"content": "๐
Original date posted:2015-12-11\n๐ Original message:On Fri, Dec 11, 2015 at 11:18 AM, Jorge Timรณn \u003cjtimon at jtimon.cc\u003e wrote:\n\n\u003e This is basically what I meant by\n\u003e\n\u003e struct hashRootStruct\n\u003e {\n\u003e uint256 hashMerkleRoot;\n\u003e uint256 hashWitnessesRoot;\n\u003e uint256 hashextendedHeader;\n\u003e }\n\u003e\n\u003e but my design doesn't calculate other_root as it appears in your tree (is\n\u003e not necessary).\n\u003e\n\u003e It is necessary to maintain compatibility with SPV nodes/wallets.\n\nAny code that just checks merkle paths up into the block header would have\nto change if the structure of the merkle tree changed to be three-headed at\nthe top.\n\nIf it remains a binary tree, then it doesn't need to change at all-- the\ncode that produces the merkle paths will just send a path that is one step\ndeeper.\n\nPlus, it's just weird to have a merkle tree that isn't a binary tree.....\n\n-- \n--\nGavin Andresen\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151211/2f95a032/attachment-0001.html\u003e",
"sig": "dd19cc6d0385c483bc4bb33e0222414e1e37a78e4b6847e804996b46296fc6917e105933b2dd08a526e69069f470878d63f41584c83da045900731069bee7d03"
}