Skip to content

Commit 51de3c9

Browse files
committed
feat: zisk verification contracts
1 parent a41c076 commit 51de3c9

3 files changed

Lines changed: 716 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Taken from https://github.com/0xPolygonHermez/zisk/blob/feature/bn128/zisk-contracts/IZiskVerifier.sol
2+
3+
// SPDX-License-Identifier: AGPL-3.0
4+
pragma solidity ^0.8.20;
5+
6+
/// @title Zisk Verifier Interface
7+
/// @author SilentSig
8+
/// @notice This contract is the interface for the Zisk Verifier.
9+
interface IZiskVerifier {
10+
/// @notice Verifies a proof with given public values and vkey.
11+
/// @param programVK The verification key for the RISC-V program.
12+
/// @param publicValues The public values encoded as bytes.
13+
/// @param proofBytes The proof of the program execution the Zisk zkVM encoded as bytes.
14+
function verifySnarkProof(uint64[4] calldata programVK, bytes calldata publicValues, bytes calldata proofBytes)
15+
external
16+
view;
17+
}

0 commit comments

Comments
 (0)