MerkleProofWrapper.sol 299 B

123456789101112131415161718
  1. pragma solidity ^0.4.24;
  2. import { MerkleProof } from "../cryptography/MerkleProof.sol";
  3. contract MerkleProofWrapper {
  4. function verify(
  5. bytes32[] proof,
  6. bytes32 root,
  7. bytes32 leaf
  8. )
  9. public
  10. pure
  11. returns (bool)
  12. {
  13. return MerkleProof.verify(proof, root, leaf);
  14. }
  15. }