Enum tari_bulletproofs::ProofError
source · pub enum ProofError {
VerificationError,
FormatError,
WrongNumBlindingFactors,
InvalidBitsize,
InvalidAggregation,
InvalidGeneratorsLength,
ProvingError(MPCError),
InvalidCommitmentExtracted,
InvalidRewindKeySeparator,
}
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.
InvalidCommitmentExtracted
This error results from trying to rewind a proof with the wrong rewind nonce
InvalidRewindKeySeparator
This error results from trying to rewind a proof with an invalid rewind key separator
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 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
source§impl From<MPCError> for ProofError
impl From<MPCError> for ProofError
source§fn from(e: MPCError) -> ProofError
fn from(e: MPCError) -> ProofError
source§impl From<ProofError> for R1CSError
impl From<ProofError> for R1CSError
source§fn from(e: ProofError) -> R1CSError
fn from(e: ProofError) -> R1CSError
source§impl PartialEq<ProofError> for ProofError
impl PartialEq<ProofError> 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 ==
.