pub enum VerifierError {
RandomCoinError(RandomCoinError),
UnsupportedFoldingFactor(usize),
NumPositionEvaluationMismatch(usize, usize),
LayerCommitmentMismatch,
InvalidLayerFolding(usize),
RemainderCommitmentMismatch,
InvalidRemainderFolding,
RemainderDegreeNotValid,
RemainderDegreeMismatch(usize),
DegreeTruncation(usize, usize, usize),
}Expand description
Defines errors which can occur during FRI proof verification.
Variants§
RandomCoinError(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(usize, usize)
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.
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(usize, usize, usize)
Polynomial degree at one of the FRI layers could not be divided evenly by the folding factor.
Trait Implementations§
Source§impl Clone for VerifierError
impl Clone for VerifierError
Source§fn clone(&self) -> VerifierError
fn clone(&self) -> VerifierError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifierError
impl Debug for VerifierError
Source§impl Display for VerifierError
impl Display for VerifierError
Source§impl PartialEq for VerifierError
impl PartialEq for VerifierError
impl Eq for VerifierError
impl StructuralPartialEq for VerifierError
Auto Trait Implementations§
impl Freeze for VerifierError
impl RefUnwindSafe for VerifierError
impl Send for VerifierError
impl Sync for VerifierError
impl Unpin for VerifierError
impl UnwindSafe for VerifierError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)