Enum prio::pcp::PcpError[][src]

pub enum PcpError {
Show 14 variants CircuitInLen, CircuitIn(&'static str), CollectInLen, CollectGadgetInLenMismatch, Fft(FftError), GadgetPolyInLen, GadgetPolyOutLen, Query(&'static str), QueryRandInvalid, Decide(&'static str), ValidRandLen, Valid(&'static str), Field(FieldError), GetRandom(Error),
}
Expand description

Errors propagated by methods in this module.

Variants

CircuitInLen

The caller of an arithmetic circuit provided the wrong number of inputs. This error may occur when evaluating a validity circuit or gadget.

CircuitIn(&'static str)

The caller of an arithmetic circuit provided malformed input.

Tuple Fields of CircuitIn

0: &'static str
CollectInLen

This error is returned by collect if the input slice is empty.

CollectGadgetInLenMismatch

This error is returned by collect if the two or more verifier shares have different gadget arities.

Fft(FftError)

Returned if an FFT operation propagates an error.

Tuple Fields of Fft

0: FftError
GadgetPolyInLen

When evaluating a gadget on polynomials, this error is returned if the input polynomials don’t all have the same length.

GadgetPolyOutLen

When evaluating a gadget on polynomials, this error is returned if the slice allocated for the output polynomial is too small.

Query(&'static str)

Calling query returned an error.

Tuple Fields of Query

0: &'static str
QueryRandInvalid

Returned by query if one of the elements of the query randomness vector is invalid. An element is invalid if using it to generate the verification message would result in a privacy violation.

If this error is returned, the caller may generate fresh randomness and retry.

Decide(&'static str)

Calling decide returned an error.

Tuple Fields of Decide

0: &'static str
ValidRandLen

The validity circuit was called with the wrong amount of randomness.

Valid(&'static str)

Encountered an error while evaluating a validity circuit.

Tuple Fields of Valid

0: &'static str
Field(FieldError)

Returned if a field operation encountered an error.

Tuple Fields of Field

0: FieldError
GetRandom(Error)

Failure when calling getrandom().

Tuple Fields of GetRandom

0: Error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.