sp1_verifier/groth16/
error.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Groth16Error {
5 #[error("Proof verification failed")]
6 ProofVerificationFailed,
7 #[error("Process verifying key failed")]
8 ProcessVerifyingKeyFailed,
9 #[error("Prepare inputs failed")]
10 PrepareInputsFailed,
11 #[error("General error: {0}")]
12 GeneralError(#[from] crate::error::Error),
13 #[error("Groth16 vkey hash mismatch")]
14 Groth16VkeyHashMismatch,
15 #[error("Vkey Root Mismatch")]
16 VkeyRootMismatch,
17 #[error("Exit code mismatch")]
18 ExitCodeMismatch,
19}