pub enum ProofError {
VerificationError,
FormatError,
WrongNumBlindingFactors,
InvalidBitsize,
InvalidAggregation,
InvalidGeneratorsLength,
InvalidInputLength,
ProvingError(MPCError),
}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.
InvalidInputLength
This error occurs when inputs are the incorrect length 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.
Trait Implementations§
Source§impl Clone for ProofError
impl Clone for ProofError
Source§fn clone(&self) -> ProofError
fn clone(&self) -> ProofError
1.0.0 (const: unstable) · 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
impl Eq for ProofError
Source§impl Error for ProofError
impl Error for ProofError
1.30.0 · 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<MPCError> for ProofError
impl From<MPCError> for ProofError
Source§fn from(e: MPCError) -> ProofError
fn from(e: MPCError) -> ProofError
Source§impl PartialEq for ProofError
impl PartialEq for ProofError
Source§fn eq(&self, other: &ProofError) -> bool
fn eq(&self, other: &ProofError) -> bool
self and other values to be equal, and is used by ==.