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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
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
Source§impl From<SynthesisError> for AHPError
impl From<SynthesisError> for AHPError
Source§fn from(other: SynthesisError) -> Self
fn from(other: SynthesisError) -> Self
Source§impl From<SynthesisError> for SNARKError
impl From<SynthesisError> for SNARKError
Source§fn from(source: SynthesisError) -> Self
fn from(source: SynthesisError) -> Self
Auto Trait Implementations§
impl Freeze for SynthesisError
impl !RefUnwindSafe for SynthesisError
impl Send for SynthesisError
impl Sync for SynthesisError
impl Unpin for SynthesisError
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.