MerkleProofWrapper.sol 487 B

12345678910111213141516171819
  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. function processProof(bytes32[] memory proof, bytes32 leaf) public pure returns (bytes32) {
  13. return MerkleProof.processProof(proof, leaf);
  14. }
  15. }