pub enum ProverError {
WitnessGeneration(String),
ProofGeneration(String),
ProofVerification(String),
InvalidInput(String),
Io(Error),
Serialization(Error),
CircuitNotFound(String),
CommandFailed(String),
InsufficientBalance {
have: u128,
need: u128,
},
InvalidMerkleProof,
CircuitNotCompiled,
}Expand description
Errors that can occur during proof generation
Variants§
WitnessGeneration(String)
Witness generation failed
ProofGeneration(String)
Proof generation failed
ProofVerification(String)
Proof verification failed
InvalidInput(String)
Invalid input provided
Io(Error)
IO error
Serialization(Error)
Serialization error
CircuitNotFound(String)
Circuit not found
CommandFailed(String)
Command execution failed
InsufficientBalance
Insufficient balance
InvalidMerkleProof
Invalid Merkle proof
CircuitNotCompiled
Circuit compilation required
Trait Implementations§
Source§impl Debug for ProverError
impl Debug for ProverError
Source§impl Display for ProverError
impl Display for ProverError
Source§impl Error for ProverError
impl Error for ProverError
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<Error> for ProverError
impl From<Error> for ProverError
Auto Trait Implementations§
impl !RefUnwindSafe for ProverError
impl !UnwindSafe for ProverError
impl Freeze for ProverError
impl Send for ProverError
impl Sync for ProverError
impl Unpin for ProverError
impl UnsafeUnpin for ProverError
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
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>
Converts
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>
Converts
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 more