p2pix-smart-contracts/docs/lib/utils/MerkleProofLib.md
2024-02-13 15:50:31 -03:00

15 lines
321 B
Markdown

# Solidity API
## MerkleProofLib
Gas optimized verification of proof of inclusion for a leaf in a Merkle tree.
### verify
```solidity
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`._