pub enum VerifierError {
    PublicCoinError(RandomCoinError),
    UnsupportedFoldingFactor(usize),
    NumPositionEvaluationMismatch(usizeusize),
    LayerCommitmentMismatch,
    InvalidLayerFolding(usize),
    RemainderTreeConstructionFailed(String),
    RemainderCommitmentMismatch,
    InvalidRemainderFolding,
    RemainderDegreeNotValid,
    RemainderDegreeMismatch(usize),
    DegreeTruncation(usizeusizeusize),
}
Expand description

Defines errors which can occur during FRI proof verification.

Variants

PublicCoinError(RandomCoinError)

Attempt to draw a random value from a public coin failed.

UnsupportedFoldingFactor(usize)

Folding factor specified for the protocol is not supported. Currently, supported folding factors are: 4, 8, and 16.

NumPositionEvaluationMismatch(usizeusize)

Number of query positions does not match the number of provided evaluations.

LayerCommitmentMismatch

Evaluations at queried positions did not match layer commitment made by the prover.

InvalidLayerFolding(usize)

Degree-respecting projection was not performed correctly at one of the layers.

RemainderTreeConstructionFailed(String)

Failed to construct a Merkle tree out of FRI remainder values.

RemainderCommitmentMismatch

FRI remainder did not match the commitment.

InvalidRemainderFolding

Degree-respecting projection was not performed correctly at the last layer.

RemainderDegreeNotValid

FRI remainder expected degree is greater than number of remainder values.

RemainderDegreeMismatch(usize)

FRI remainder degree is greater than the polynomial degree expected for the last layer.

DegreeTruncation(usizeusizeusize)

Polynomial degree at one of the FRI layers could not be divided evenly by the folding factor.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

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.