Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computation of Merkle root in Solidity #1401

Closed
wants to merge 1 commit into from

Commits on Oct 29, 2018

  1. Generic Solidity Merkle-tree library, includes Merkle-root computatio…

    …n function
    
    * MerkleTrees library contains a generic Merkle-tree implementation, that may be configured with aribitrary leaf/node-pair hash functions
    * LegacyMerkleTrees library contains a Merkle tree implementation that uses plain keccak256 for both leaves and nodes.
    * MerkleProof library behaviour is unchanged, except that it now accepts the leaf data directly instead of the leaf hash. Otherwise it keeps the same interface and tests, but internally it forwards calls to LegacyMerkleTrees library
    * SecondPreimageResistantMerkleTrees contains a Merkle-tree implementation that uses different hash functions for leaves and node-pairs
    dwardu committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    e87cfbf View commit details
    Browse the repository at this point in the history