pub enum SynthesisError {
AnyhowError(Error),
AssignmentMissing,
ConstraintFieldError(ConstraintFieldError),
DivisionByZero,
Unsatisfiable,
PolyTooLarge,
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.
PolyTooLarge
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§
Source§impl Debug for SynthesisError
impl Debug for SynthesisError
Source§impl Display for SynthesisError
impl Display for SynthesisError
Source§impl Error for SynthesisError
impl Error for SynthesisError
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()
Source§impl From<ConstraintFieldError> for SynthesisError
impl From<ConstraintFieldError> for SynthesisError
Source§fn from(source: ConstraintFieldError) -> Self
fn from(source: ConstraintFieldError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SynthesisError
impl From<Error> for SynthesisError
Source§impl From<Error> for SynthesisError
impl From<Error> for SynthesisError
Source§fn from(e: Error) -> SynthesisError
fn from(e: Error) -> SynthesisError
Converts to this type from the input type.
Source§impl From<SynthesisError> for AHPError
impl From<SynthesisError> for AHPError
Source§fn from(other: SynthesisError) -> Self
fn from(other: SynthesisError) -> Self
Converts to this type from the input type.
Source§impl From<SynthesisError> for SNARKError
impl From<SynthesisError> for SNARKError
Source§fn from(source: SynthesisError) -> Self
fn from(source: SynthesisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SynthesisError
impl !RefUnwindSafe for SynthesisError
impl Send for SynthesisError
impl Sync for SynthesisError
impl Unpin for SynthesisError
impl !UnwindSafe for SynthesisError
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