Skip to main content

ISP1Verifier

ISP1Verifier

This contract is the interface for the SP1 Verifier.

verifyProof

function verifyProof(bytes32 programVKey, bytes publicValues, bytes proofBytes) external view

Verifies a proof with given public values and vkey.

It is expected that the first 4 bytes of proofBytes must match the first 4 bytes of target verifier's VERIFIER_HASH.

Parameters

NameTypeDescription
programVKeybytes32The verification key for the RISC-V program.
publicValuesbytesThe public values encoded as bytes.
proofBytesbytesThe proof of the program execution the SP1 zkVM encoded as bytes.

ISP1VerifierWithHash

This interface is the interface for the SP1 Verifier with a hash.

VERIFIER_HASH

function VERIFIER_HASH() external pure returns (bytes32)

Returns the hash of the verifier.