pub enum Error {
SecurityTooLow {
round: &'static str,
estimated_bits: usize,
min_bits: usize,
},
EmptyOuterStatement,
ZeroOuterQueries,
OuterDomainTooLarge {
code_len: usize,
max_log2: u32,
},
UnsupportedCodeRate {
log_inv_rate: u32,
},
FoldArity {
fold_arity_log: usize,
},
EarlyStopBelowArity {
early_stop_vars: usize,
fold_arity_log: usize,
},
PoolBelowArity {
num_vars: usize,
fold_arity_log: usize,
},
PoolAboveWord {
num_vars: usize,
log_inv_rate: usize,
},
TableBelowNoise {
poly: usize,
row_vars: usize,
noise_cells: usize,
},
}Expand description
Failures of the Config checks and the CodeRate decode.
Variants§
SecurityTooLow
Estimated security of round fell below min_security_bits.
EmptyOuterStatement
No scalar to mask; a pad of length zero hides nothing.
ZeroOuterQueries
No column opening; an unopened oracle proves nothing.
OuterDomainTooLarge
The outer code outgrew the largest additive-FFT domain we encode.
UnsupportedCodeRate
log_inv_rate decodes to no CodeRate:
only 1 (rate 1/2) and 2 (rate 1/4) do.
FoldArity
fold_arity_log is 0 or above MAX_FOLD_ARITY_LOG.
EarlyStopBelowArity
early_stop_vars + 1 < fold_arity_log: some
heights then admit no stop with whole rounds.
PoolBelowArity
The largest polynomial has fewer variables than one committed round binds.
PoolAboveWord
The codeword of num_vars + log_inv_rate index bits
does not fit a machine word, where shifts would wrap.
TableBelowNoise
The uniform blocks of polynomial poly cannot hold its
noise: its unopened leaves would be fixed by the witness.
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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§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