Appearance
Solidity API
MerkleProof
derived from https://github.com/OpenZeppelin/openzeppelin-contracts (MIT license)
verify
solidity
function verify(bytes32[] proof, bytes32 root, bytes32 leaf) internal pure returns (bool)verify whether given leaf is contained within Merkle tree defined by given root
Parameters
| Name | Type | Description |
|---|---|---|
| proof | bytes32[] | proof that Merkle tree contains given leaf |
| root | bytes32 | Merkle tree root |
| leaf | bytes32 | element whose presence in Merkle tree to prove |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bool | whether leaf is proven to be contained within Merkle tree defined by root |