Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 809 Bytes

OZ MerkleProof.md

File metadata and controls

24 lines (20 loc) · 809 Bytes

OpenZeppelin MerkleProof: This deals with verification of Merkle Trees proofs.

verify: which can prove that some value is part of a Merkle tree. Returns true if a leaf can be proved to be a part of a Merkle tree defined by root.

For this, a proof must be provided, containing sibling hashes on the branch from the leaf to the root of the tree.

Each pair of leaves and each pair of pre-images are assumed to be sorted.


Slide Screenshot

167.jpg


Slide Text

  • Merkle Tree Proof Verificiation
  • Merkle Tree Leaf -> Root
  • verify(proof, root, leaf) -> bool
  • Proof -> Sibling Hashes
  • Branches -> Leaf to Root

References


Tags