Nova/src/errors.rs
src/errors.rsRaw
1//! This module defines errors returned by the library.
2use core::fmt::Debug;
3
4/// Errors returned by Nova
5#[derive(Clone, Debug, Eq, PartialEq)]
6pub enum NovaError {
7 /// returned if the supplied row or col in (row,col,val) tuple is out of range
8 InvalidIndex,
9 /// returned if the supplied input is not even-sized
10 OddInputLength,
11 /// returned if the supplied input is not of the right length
12 InvalidInputLength,
13 /// returned if the supplied witness is not of the right length
14 InvalidWitnessLength,
15 /// returned if the supplied instance input does not match the previous instance output
16 InputOutputMismatch,
17 /// returned if the supplied witness is not a satisfying witness to a given shape and instance
18 UnSat,
19 /// returned when the supplied compressed commitment cannot be decompressed
20 DecompressionError,
21}