Files
linea-monorepo/contracts/contracts/test-contracts/TestPublicInputVerifier.sol
Victorien Gauch 65f7000f99 chore(3704): Bump solidity version to 0.8.26 across the repository (#64)
* Bump solidity version to 0.8.26 across the repository

* Regenerated Verifiers

* bump solidity for other merged PRs

---------

Co-authored-by: thedarkjester <grant.southey@consensys.net>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2024-09-24 11:14:12 +02:00

18 lines
530 B
Solidity

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.26;
import { IPlonkVerifier } from "../interfaces/l1/IPlonkVerifier.sol";
/// @dev Test verifier contract that returns true.
contract TestPublicInputVerifier is IPlonkVerifier {
uint256 public expectedPublicInput;
constructor(uint256 _expectedPublicInput) {
expectedPublicInput = _expectedPublicInput;
}
function Verify(bytes calldata, uint256[] calldata _publicInput) external view returns (bool) {
return expectedPublicInput == _publicInput[0];
}
}