Expand description
This crate provides verifiers for SP1 Groth16 and Plonk BN254 proofs in a no-std environment. It is patched for efficient verification within the SP1 zkVM context.
Structs§
- GROT
H16_ VK_ BYTES - The Groth16 verifying key for this SP1 version.
- Groth16
Verifier - A verifier for Groth16 zero-knowledge proofs.
- PLONK_
VK_ BYTES - The PLONK verifying key for this SP1 version.
- Plonk
Verifier - A verifier for Plonk zero-knowledge proofs.
Enums§
Functions§
- bn254_
public_ values - Formats the sp1 vkey hash and public inputs for use in either the Plonk or Groth16 verifier.
- decode_
sp1_ vkey_ hash - Decodes the sp1 vkey hash from the string from a call to
vk.bytes32. - hash_
public_ inputs - Hashes the public inputs in the same format as the Plonk and Groth16 verifiers.