p2pix-smart-contracts/docs/lib/utils/MerkleProofLib.md
2024-02-13 16:35:16 -03:00

321 B

Solidity API

MerkleProofLib

Gas optimized verification of proof of inclusion for a leaf in a Merkle tree.

verify

function verify(bytes32[] proof, bytes32 root, bytes32 leaf) internal pure returns (bool isValid)

Returns whether leaf exists in the Merkle tree with root, given proof.