Enum snarkvm_r1cs::errors::SynthesisError
source · pub enum SynthesisError {
AnyhowError(Error),
AssignmentMissing,
ConstraintFieldError(ConstraintFieldError),
DivisionByZero,
Unsatisfiable,
PolynomialDegreeTooLarge,
UnexpectedIdentity,
IoError(Error),
MalformedVerifyingKey(usize, usize),
UnconstrainedVariable,
}Expand description
This is an error that could occur during circuit synthesis contexts, such as CRS generation, proving or verification.
Variants
AnyhowError(Error)
AssignmentMissing
During synthesis, we lacked knowledge of a variable assignment.
ConstraintFieldError(ConstraintFieldError)
Handles a failed conversion of objects into constraint field elements.
DivisionByZero
During synthesis, we divided by zero.
Unsatisfiable
During synthesis, we constructed an unsatisfiable constraint system.
PolynomialDegreeTooLarge
During synthesis, our polynomials ended up being too high of degree
UnexpectedIdentity
During proof generation, we encountered an identity in the CRS
IoError(Error)
During proof generation, we encountered an I/O error with the CRS
MalformedVerifyingKey(usize, usize)
During verification, our verifying key was malformed.
UnconstrainedVariable
During CRS generation, we observed an unconstrained auxiliary variable
Trait Implementations
sourceimpl Debug for SynthesisError
impl Debug for SynthesisError
sourceimpl Display for SynthesisError
impl Display for SynthesisError
sourceimpl Error for SynthesisError
impl Error for SynthesisError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ConstraintFieldError> for SynthesisError
impl From<ConstraintFieldError> for SynthesisError
sourcefn from(source: ConstraintFieldError) -> Self
fn from(source: ConstraintFieldError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for SynthesisError
impl From<Error> for SynthesisError
sourceimpl From<Error> for SynthesisError
impl From<Error> for SynthesisError
sourcefn from(e: Error) -> SynthesisError
fn from(e: Error) -> SynthesisError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SynthesisError
impl Send for SynthesisError
impl Sync for SynthesisError
impl Unpin for SynthesisError
impl !UnwindSafe for SynthesisError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more