Expand description
@notice Verifier interface for RISC Zero receipts of execution.
interface IRiscZeroVerifier {
function verify(bytes calldata seal, bytes32 imageId, bytes32 journalDigest) external view;
function verifyIntegrity(Receipt calldata receipt) external view;
}Structs§
- IRisc
Zero Verifier Instance - A
IRiscZeroVerifierinstance. - verify
Call - @notice Verify that the given seal is a valid RISC Zero proof of execution with the
given image ID and journal digest. Reverts on failure.
@dev This method additionally ensures that the input hash is all-zeros (i.e. no
committed input), the exit code is (Halted, 0), and there are no assumptions (i.e. the
receipt is unconditional).
@param seal The encoded cryptographic proof (i.e. SNARK).
@param imageId The identifier for the guest program.
@param journalDigest The SHA-256 digest of the journal bytes.
Function with signature
verify(bytes,bytes32,bytes32)and selector0xab750e75. - verify
Integrity Call - @notice Verify that the given receipt is a valid RISC Zero receipt, ensuring the
sealis valid a cryptographic proof of the execution with the givenclaim. Reverts on failure. @param receipt The receipt to be verified. Function with signatureverifyIntegrity((bytes,bytes32))and selector0x1599ead5. - verify
Integrity Return - @notice Verify that the given receipt is a valid RISC Zero receipt, ensuring the
sealis valid a cryptographic proof of the execution with the givenclaim. Reverts on failure. @param receipt The receipt to be verified. Container type for the return parameters of theverifyIntegrity((bytes,bytes32))function. - verify
Return - @notice Verify that the given seal is a valid RISC Zero proof of execution with the
given image ID and journal digest. Reverts on failure.
@dev This method additionally ensures that the input hash is all-zeros (i.e. no
committed input), the exit code is (Halted, 0), and there are no assumptions (i.e. the
receipt is unconditional).
@param seal The encoded cryptographic proof (i.e. SNARK).
@param imageId The identifier for the guest program.
@param journalDigest The SHA-256 digest of the journal bytes.
Container type for the return parameters of the
verify(bytes,bytes32,bytes32)function.
Enums§
- IRisc
Zero Verifier Calls - Container for all the
IRiscZeroVerifierfunction calls.
Functions§
- new
- Creates a new wrapper around an on-chain
IRiscZeroVerifiercontract instance.