mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-01-10 11:55:44 +00:00
26 lines
489 B
Solidity
26 lines
489 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.23;
|
|
|
|
import "./Verifier.sol";
|
|
|
|
contract TestVerifier is IVerifier {
|
|
bool private _proofsAreValid;
|
|
|
|
constructor() {
|
|
_proofsAreValid = true;
|
|
}
|
|
|
|
function setProofsAreValid(bool proofsAreValid) public {
|
|
_proofsAreValid = proofsAreValid;
|
|
}
|
|
|
|
function verifyProof(
|
|
uint[2] calldata,
|
|
uint[2][2] calldata,
|
|
uint[2] calldata,
|
|
uint[3] calldata
|
|
) external view returns (bool) {
|
|
return _proofsAreValid;
|
|
}
|
|
}
|