Files
openzeppelin-contracts/docs/source/merkleproof.rst
2017-06-15 11:07:22 -04:00

10 lines
419 B
ReStructuredText

MerkleProof
=============================================
Merkle proof verification for leaves of a Merkle tree.
verifyProof(bytes _proof, bytes32 _root, bytes32 _leaf) internal constant returns (bool)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Verifies a Merkle proof proving the existence of a leaf in a Merkle tree. Assumes that each pair of leaves and each pair of pre-images is sorted.