pub enum ProofError {
VerificationError,
FormatError,
WrongNumBlindingFactors,
InvalidBitsize,
InvalidAggregation,
InvalidGeneratorsLength,
ProvingError(MPCError),
SerializationError(String),
}Expand description
Represents an error in proof creation, verification, or parsing.
Variants§
VerificationError
This error occurs when a proof failed to verify.
FormatError
This error occurs when the proof encoding is malformed.
WrongNumBlindingFactors
This error occurs during proving if the number of blinding factors does not match the number of values.
InvalidBitsize
This error occurs when attempting to create a proof with bitsize other than \(8\), \(16\), \(32\), or \(64\).
InvalidAggregation
This error occurs when attempting to create an aggregated proof with non-power-of-two aggregation size.
InvalidGeneratorsLength
This error occurs when there are insufficient generators for the proof.
ProvingError(MPCError)
This error results from an internal error during proving.
The single-party prover is implemented by performing multiparty computation with ourselves. However, because the MPC protocol is not exposed by the single-party API, we consider its errors to be internal errors.
SerializationError(String)
This error occurs if serialization fails
Trait Implementations§
Source§impl Clone for ProofError
impl Clone for ProofError
Source§fn clone(&self) -> ProofError
fn clone(&self) -> ProofError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProofError
impl Debug for ProofError
Source§impl Display for ProofError
impl Display for ProofError
Source§impl From<Error> for ProofError
impl From<Error> for ProofError
Source§fn from(e: Error) -> ProofError
fn from(e: Error) -> ProofError
Source§impl From<ProofError> for R1CSError
Available on crate feature yoloproofs only.
impl From<ProofError> for R1CSError
yoloproofs only.Source§fn from(e: ProofError) -> R1CSError
fn from(e: ProofError) -> R1CSError
Source§impl From<SerializationError> for ProofError
impl From<SerializationError> for ProofError
Source§fn from(_: SerializationError) -> ProofError
fn from(_: SerializationError) -> ProofError
Source§impl PartialEq for ProofError
impl PartialEq for ProofError
impl Eq for ProofError
impl StructuralPartialEq for ProofError
Auto Trait Implementations§
impl Freeze for ProofError
impl RefUnwindSafe for ProofError
impl Send for ProofError
impl Sync for ProofError
impl Unpin for ProofError
impl UnwindSafe for ProofError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more