Add tests, docs and MerkleTree helper
This commit is contained in:
9
docs/source/merkleproof.rst
Normal file
9
docs/source/merkleproof.rst
Normal file
@ -0,0 +1,9 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user