Skip to main content

InvalidProofShapeError

Enum InvalidProofShapeError 

Source
pub enum InvalidProofShapeError {
Show 19 variants InstanceCountMismatch, TraceLocalWidthMismatch { air: usize, expected: usize, got: usize, }, TraceNextMismatch { air: usize, }, UnexpectedTraceNext { air: usize, }, QuotientChunksCountMismatch { air: usize, expected: usize, got: usize, }, QuotientChunkDimensionMismatch { air: usize, }, QuotientDomainsCountMismatch { air: usize, }, PreprocessedTraceWidthMismatch { expected_local: usize, expected_next: usize, got_local: usize, got_next: usize, }, PreprocessedVerifierKeyInconsistency, PreprocessedDegreeMismatch { vk_degree_bits: usize, proof_degree_bits: usize, }, PreprocessedWidthMismatch { air: usize, }, UnexpectedPreprocessedValues { air: usize, }, DegreeBitsTooSmall { air: Option<usize>, minimum: usize, got: usize, }, DegreeBitsTooLarge { air: Option<usize>, maximum: usize, got: usize, }, QuotientDomainTooLarge { air: Option<usize>, maximum: usize, got: usize, }, MissingPreprocessedValues { air: usize, }, PreprocessedMetadataMismatch { air: usize, }, PublicValuesLengthMismatch { expected: usize, got: usize, }, OpenedValuesDimensionMismatch,
}
Expand description

Specific reasons why a proof’s shape is invalid.

Variants§

§

InstanceCountMismatch

Instance arrays (airs, opened_values, public_values, degree_bits) have different lengths.

§

TraceLocalWidthMismatch

Trace local width doesn’t match the AIR width.

Fields

§air: usize
§expected: usize
§got: usize
§

TraceNextMismatch

Trace next values have wrong width or are unexpectedly missing.

Fields

§air: usize
§

UnexpectedTraceNext

Trace next values present when AIR doesn’t use next row.

Fields

§air: usize
§

QuotientChunksCountMismatch

Quotient chunks count doesn’t match expected.

Fields

§air: usize
§expected: usize
§got: usize
§

QuotientChunkDimensionMismatch

Quotient chunk has wrong dimension.

Fields

§air: usize
§

QuotientDomainsCountMismatch

Quotient opened values count doesn’t match domain count.

Fields

§air: usize
§

PreprocessedTraceWidthMismatch

Preprocessed trace opened values width doesn’t match expected.

Fields

§expected_local: usize
§expected_next: usize
§got_local: usize
§got_next: usize
§

PreprocessedVerifierKeyInconsistency

Preprocessed verifier key is inconsistent with width.

§

PreprocessedDegreeMismatch

Preprocessed and main trace have different heights.

Fields

§vk_degree_bits: usize
§proof_degree_bits: usize
§

PreprocessedWidthMismatch

Preprocessed width mismatch for a specific AIR.

Fields

§air: usize
§

UnexpectedPreprocessedValues

Preprocessed values present when preprocessed width is zero.

Fields

§air: usize
§

DegreeBitsTooSmall

Proof degree bits are too small for the PCS ZK setting.

Fields

§minimum: usize
§got: usize
§

DegreeBitsTooLarge

Proof degree bits are too large to safely construct verifier domains.

Fields

§maximum: usize
§got: usize
§

QuotientDomainTooLarge

The quotient domain log-size overflows after adding degree bits and quotient chunk bits.

Fields

§maximum: usize
§got: usize
§

MissingPreprocessedValues

Missing preprocessed local or next values.

Fields

§air: usize
§

PreprocessedMetadataMismatch

Preprocessed metadata missing or mismatched.

Fields

§air: usize
§

PublicValuesLengthMismatch

Public values length doesn’t match what the AIR expects.

Fields

§expected: usize
§got: usize
§

OpenedValuesDimensionMismatch

Opened values (trace, quotient, random) don’t match expected dimensions.

Trait Implementations§

Source§

impl Debug for InvalidProofShapeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InvalidProofShapeError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InvalidProofShapeError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<PcsErr> From<InvalidProofShapeError> for VerificationError<PcsErr>
where PcsErr: Debug,

Source§

fn from(source: InvalidProofShapeError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more