arnaucube
arnaucube/NovaPublic Self-hosted repository
Nova/src/errors.rs
src/errors.rsRaw
 1use core::fmt::Debug;
 2
 3#[derive(Clone, Debug, Eq, PartialEq)]
 4pub enum NovaError {
 5  /// returned if the supplied row or col in (row,col,val) tuple is out of range
 6  InvalidIndex,
 7  /// returned if the supplied input is not of the right length
 8  InvalidInputLength,
 9  /// returned if the supplied witness is not of the right length
10  InvalidWitnessLength,
11  /// returned if the supplied witness is not a satisfying witness to a given shape and instance
12  UnSat,
13  /// returned when the supplied compressed commitment cannot be decompressed
14  DecompressionError,
15}