2020-07-24 22:16:01 +00:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2018-08-27 05:36:25 +00:00
|
|
|
|
2020-07-24 22:16:01 +00:00
|
|
|
pragma solidity 0.5.11;
|
|
|
|
|
|
|
|
import "../common/MerkleProof.sol";
|
2018-08-27 05:36:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
contract MerkleProofWrapper {
|
|
|
|
|
|
|
|
function verifyProof(
|
2020-07-24 22:16:01 +00:00
|
|
|
bytes32[] memory _proof,
|
2018-08-27 05:36:25 +00:00
|
|
|
bytes32 _root,
|
|
|
|
bytes32 _leaf
|
|
|
|
)
|
|
|
|
public
|
|
|
|
pure
|
|
|
|
returns (bool)
|
|
|
|
{
|
|
|
|
return MerkleProof.verifyProof(_proof, _root, _leaf);
|
|
|
|
}
|
|
|
|
}
|