2024-01-10 14:12:06 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.8;
|
|
|
|
|
|
|
|
import "./Verifier.sol";
|
|
|
|
|
|
|
|
contract TestVerifier is IVerifier {
|
2024-01-15 15:28:27 +00:00
|
|
|
bool private _proofsAreValid;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
_proofsAreValid = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function setProofsAreValid(bool proofsAreValid) public {
|
|
|
|
_proofsAreValid = proofsAreValid;
|
|
|
|
}
|
|
|
|
|
2024-01-10 14:12:06 +00:00
|
|
|
function verifyProof(
|
|
|
|
uint[2] calldata,
|
|
|
|
uint[2][2] calldata,
|
|
|
|
uint[2] calldata,
|
|
|
|
uint[3] calldata
|
2024-01-15 15:28:27 +00:00
|
|
|
) external view returns (bool) {
|
|
|
|
return _proofsAreValid;
|
2024-01-10 14:12:06 +00:00
|
|
|
}
|
|
|
|
}
|