mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
* 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>
18 lines
530 B
Solidity
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];
|
|
}
|
|
}
|