-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Story Form
As a BN Developer
I want to keep Hashing consistency with CN
So that we implemeent the latest changes to the way we calculate the BlockRoot Hash
Technical Notes
As a result of work to define interledger protocols and state proofs, a number of deficiencies in the current hashing merkle tree were identified.
These include missing references, long path requirements, differentiating internal and leaf hashes, and forward-compatibility.
To address these and related concerns, the construction of the hash tree is to be modified with several wide-ranging changes. Note that these changes only affect the hash calculations for the block proof; they do not change the actual values stored in state or transmitted in the block stream.
We intend to create a modified hash calculation module that implements this updated "merkle mountain" construction process and calculates the root hash result. This module may (perhaps in a future update) optionally cache certain expensive subtree data to limit unnecessary hash recalculation.