Skip to main content

lox_zkp/
errors.rs

1use thiserror::Error;
2/// An error during proving or verification, such as a verification failure.
3#[derive(Debug, Error)]
4pub enum ProofError {
5    /// Something is wrong with the proof, causing a verification failure.
6    #[error("Verification failed.")]
7    VerificationFailure,
8    /// Occurs during batch verification if the batch parameters are mis-sized.
9    #[error("Mismatched parameter sizes for batch verification.")]
10    BatchSizeMismatch,
11}