2023-05-26 08:01:05 +00:00
|
|
|
// SPDX-License-Identifier: Unlicense
|
|
|
|
pragma solidity ^0.8.15;
|
|
|
|
|
|
|
|
import {IVerifier} from "../contracts/IVerifier.sol";
|
|
|
|
|
|
|
|
contract TrueVerifier is IVerifier {
|
2023-07-26 10:42:37 +00:00
|
|
|
function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[2] memory input)
|
|
|
|
external
|
|
|
|
pure
|
|
|
|
returns (bool)
|
|
|
|
{
|
2023-05-26 08:01:05 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
contract FalseVerifier is IVerifier {
|
2023-07-26 10:42:37 +00:00
|
|
|
function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[2] memory input)
|
|
|
|
external
|
|
|
|
pure
|
|
|
|
returns (bool)
|
|
|
|
{
|
2023-05-26 08:01:05 +00:00
|
|
|
return false;
|
|
|
|
}
|
2023-07-26 10:42:37 +00:00
|
|
|
}
|