Needs a bit of cleanup (ie move legacy mode to the crypto module), but gets the job done as the final breaking change.
cc @chm-diederichs @kasperisager
Chris, this removes the unneeded byte id from the intermediate Merkle tree hashes to do a final simplification of that. The only thing ever trusted is the tree hash, which locks in the position of the tree using the node indexes.
The internal nodes do explicitly NOT include the index, as that means we can use it for dedup.
Needs a bit of cleanup (ie move legacy mode to the crypto module), but gets the job done as the final breaking change.
cc @chm-diederichs @kasperisager
Chris, this removes the unneeded byte id from the intermediate Merkle tree hashes to do a final simplification of that. The only thing ever trusted is the tree hash, which locks in the position of the tree using the node indexes.
The internal nodes do explicitly NOT include the index, as that means we can use it for dedup.