MerkleProofWrapper.sol 330 B

123456789101112131415
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/cryptography/MerkleProof.sol";
  4. contract MerkleProofWrapper {
  5. function verify(
  6. bytes32[] memory proof,
  7. bytes32 root,
  8. bytes32 leaf
  9. ) public pure returns (bool) {
  10. return MerkleProof.verify(proof, root, leaf);
  11. }
  12. }