Files
Nova/src/errors.rs
Srinath Setty ccc6ccd4c7 Support for arbitrary arity for step circuit's IO (#107)
* support for arbitrary arity for F

* revive MinRoot example

* revive tests

* revive ecdsa

* remove unused code

* use None instead of Some(1u32)

* revive benches

* fix clippy warning
2022-08-16 11:35:17 -07:00

32 lines
1.3 KiB
Rust

//! This module defines errors returned by the library.
use core::fmt::Debug;
/// Errors returned by Nova
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum NovaError {
/// returned if the supplied row or col in (row,col,val) tuple is out of range
InvalidIndex,
/// returned if the supplied input is not even-sized
OddInputLength,
/// returned if the supplied input is not of the right length
InvalidInputLength,
/// returned if the supplied witness is not of the right length
InvalidWitnessLength,
/// returned if the supplied witness is not a satisfying witness to a given shape and instance
UnSat,
/// returned when the supplied compressed commitment cannot be decompressed
DecompressionError,
/// returned if proof verification fails
ProofVerifyError,
/// returned if the provided number of steps is zero
InvalidNumSteps,
/// returned when an invalid inner product argument is provided
InvalidIPA,
/// returned when an invalid sum-check proof is provided
InvalidSumcheckProof,
/// returned when the initial input to an incremental computation differs from a previously declared arity
InvalidInitialInputLength,
/// returned when the step execution produces an output whose length differs from a previously declared arity
InvalidStepOutputLength,
}