pub enum Error {
Plonkish(Error),
FieldCat(Error),
WitnessSizeMismatch {
expected: usize,
actual: usize,
},
UnsatisfiedConstraint {
index: usize,
},
RoundCountMismatch {
expected: usize,
actual: usize,
},
SumcheckFinalMismatch,
MerkleVerificationFailed,
DimensionMismatch {
expected: usize,
actual: usize,
},
EmptyConstraintSet,
NotPowerOfTwo {
value: usize,
},
LeafIndexOutOfBounds {
index: usize,
leaf_count: usize,
},
}Expand description
All errors that can arise in proof-cat.
Variants§
Plonkish(Error)
An error propagated from plonkish-cat.
FieldCat(Error)
An error propagated from field-cat (field arithmetic or byte encoding).
WitnessSizeMismatch
Witness length does not match the wire count.
Fields
UnsatisfiedConstraint
A constraint was not satisfied by the witness.
RoundCountMismatch
Sumcheck round count does not match the number of variables.
Fields
SumcheckFinalMismatch
Sumcheck final evaluation check failed.
MerkleVerificationFailed
Merkle opening proof does not match the committed root.
DimensionMismatch
Polynomial evaluation point has wrong dimension.
Fields
EmptyConstraintSet
Constraint set is empty; nothing to prove.
NotPowerOfTwo
A value is not a power of two where one was required.
LeafIndexOutOfBounds
Leaf index out of bounds for the Merkle tree.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more