MerkleMultiProofWrapper.sol
1 pragma solidity >=0.5.0 <0.7.0; 2 import "../cryptography/MerkleMultiProof.sol"; 3 4 contract MerkleMultiProofWrapper { 5 6 function calculateMultiMerkleRoot( 7 bytes32[] memory leafs, 8 bytes32[] memory proofs, 9 bool[] memory useProof 10 ) 11 public 12 pure 13 returns (bytes32) 14 { 15 return MerkleMultiProof.calculateMultiMerkleRoot(leafs, proofs, useProof); 16 } 17 18 function verifyMultiProof( 19 bytes32 root, 20 bytes32[] memory leafs, 21 bytes32[] memory proofs, 22 bool[] memory useProof 23 ) 24 public 25 pure 26 returns (bool) 27 { 28 return MerkleMultiProof.verifyMultiProof(root, leafs, proofs, useProof); 29 } 30 31 32 function foo() 33 external 34 pure 35 { 36 37 } 38 39 } 40 41