Skip to content

Commit

Permalink
add v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Jun 20, 2024
1 parent d42f71e commit 0e320db
Show file tree
Hide file tree
Showing 4 changed files with 1,436 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/script/deploy/SP1Verifier.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.20;

import {console} from "forge-std/console.sol";
import {BaseScript} from "../utils/Base.s.sol";
import {SP1Verifier} from "../../src/v1.0.7-testnet/SP1Verifier.sol";
import {SP1Verifier} from "../../src/v1.0.8-testnet/SP1Verifier.sol";
import {SP1VerifierGateway} from "../../src/SP1VerifierGateway.sol";

contract SP1VerifierScript is BaseScript {
Expand Down
10 changes: 9 additions & 1 deletion contracts/src/SP1MockVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ import {ISP1Verifier} from "./ISP1Verifier.sol";
/// @author Succinct Labs
/// @notice This contracts implements a Mock solidity verifier for SP1.
contract SP1MockVerifier is ISP1Verifier {
function VERSION() external pure returns (string memory) {
return "TODO";
}

/// @notice Verifies a mock proof with given public values and vkey.
/// @param proofBytes The proof of the program execution the SP1 zkVM encoded as bytes.
function verifyProof(bytes32, bytes calldata, bytes calldata proofBytes) external pure {
function verifyProof(
bytes32,
bytes memory,
bytes memory proofBytes
) external pure {
assert(proofBytes.length == 0);
}
}
Loading

0 comments on commit 0e320db

Please sign in to comment.