Skip to content

Update TMSimpleMerkleTree.sol #111

@colin-axner

Description

@colin-axner

Tendermint updated their simple merkle tree to the following:

leaf nodes and inner nodes have different hashes. 
This is for "second pre-image resistance", to prevent the proof to an inner node being valid as the proof of a leaf. 
The leaf nodes are SHA256(0x00 || leaf_data), and inner nodes are SHA256(0x01 || left_hash || right_hash)

This can be seen here

Metadata

Metadata

Assignees

No one assigned

    Labels

    V2next iteration of the contract

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions