Crates.io | sp1-verifier |
lib.rs | sp1-verifier |
version | 5.2.1 |
created_at | 2024-11-07 20:38:40.786362+00 |
updated_at | 2025-08-05 20:28:13.934953+00 |
description | Verifier for SP1 Groth16 and Plonk proofs. |
homepage | |
repository | https://github.com/succinctlabs/sp1 |
max_upload_size | |
id | 1440160 |
size | 150,503 |
This crate provides verifiers for SP1 Groth16 and Plonk zero-knowledge proofs. These proofs are expected to be generated using the SP1 SDK.
Groth16 and Plonk proof verification are supported in no-std
environments. Verification in the
SP1 zkVM context is patched, in order to make use of the
bn254 precompiles.
Verification keys for Groth16 and Plonk are stored in the bn254-vk
directory. These
vkeys are used to verify all SP1 proofs.
These vkeys are the same as those found locally in
~/.sp1/circuits/<circuit_name>/<version>/<circuit_name>_vk.bin
, and should be automatically
updated after every release.
Run tests with the following command:
cargo test --package sp1-verifier
These tests generate a groth16/plonk proof and verify it.
Adapted from @Bisht13's gnark-bn254-verifier
crate.