MerkleProofWrapper.sol 300 B

12345678910111213141516171819
  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. }