sp1_verifier/groth16/
error.rs

1use 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")]
12    GeneralError(#[from] crate::error::Error),
13    #[error("Groth16 vkey hash mismatch")]
14    Groth16VkeyHashMismatch,
15}