#[non_exhaustive]pub enum BooleanWhirError {
Show 15 variants
WitnessTooNarrow {
needed: usize,
actual: usize,
},
ConfigArity {
expected: usize,
actual: usize,
},
WitnessArity {
expected: usize,
actual: usize,
},
NoPoints,
ClaimCount {
expected: usize,
values: usize,
reductions: usize,
},
PointArity {
expected: usize,
actual: usize,
},
NoReading {
index: usize,
},
RowVariables {
index: usize,
row_variables: usize,
num_variables: usize,
},
ReadingShape {
index: usize,
},
Packing(PackError),
Reduction(BitRingSwitchError),
ReductionProof(BitRingSwitchProofError),
Commit(WhirConfigError),
Opening(VerifierError),
SurvivingClaim,
}Expand description
Why a Boolean commitment or opening was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WitnessTooNarrow
The witness is narrower than the coordinates one element absorbs.
ConfigArity
The schedule does not commit the elements the packing holds.
WitnessArity
The witness does not cover the committed hypercube.
NoPoints
No opening point was supplied, so there is nothing to prove.
ClaimCount
The claim counts on the two sides of an opening disagree.
Fields
PointArity
The opening point does not name the committed function’s variables.
Fields
NoReading
An opening asks for no reading at all.
RowVariables
An opening steps within more rows than the witness has.
Fields
ReadingShape
A reading is present where its opening asks for none, or missing where it asks for one.
Packing(PackError)
The bits do not reinterpret as whole elements of the alphabet.
Reduction(BitRingSwitchError)
A reduction could not be set up for its opening.
ReductionProof(BitRingSwitchProofError)
A reduction proof was rejected.
Commit(WhirConfigError)
The proximity argument refused to commit or to open.
Opening(VerifierError)
The proximity opening was rejected.
SurvivingClaim
A surviving claim was not closed by the value the commitment opened.
Trait Implementations§
Source§impl Debug for BooleanWhirError
impl Debug for BooleanWhirError
Source§impl Display for BooleanWhirError
impl Display for BooleanWhirError
Source§impl Error for BooleanWhirError
impl Error for BooleanWhirError
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
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BooleanWhirError
impl RefUnwindSafe for BooleanWhirError
impl Send for BooleanWhirError
impl Sync for BooleanWhirError
impl Unpin for BooleanWhirError
impl UnsafeUnpin for BooleanWhirError
impl UnwindSafe for BooleanWhirError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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