pub enum LookupWitnessSource {
Column {
column_index: usize,
},
Affine {
terms: Vec<(usize, i64)>,
constant_offset_bits: u32,
},
}Expand description
Describes how a lookup witness column was derived from the trace.
Carried in LookupGroupMeta so the verifier can reconstruct the
parent evaluation without re-receiving the lookup specs.
Variants§
Column
Standard column lookup: parent eval = up_evals[column_index].
Affine
Affine-combination lookup: parent eval = Σ coeff·up_evals[col] + offset. Currently only needed for BitPoly
Trait Implementations§
Source§impl Clone for LookupWitnessSource
impl Clone for LookupWitnessSource
Source§fn clone(&self) -> LookupWitnessSource
fn clone(&self) -> LookupWitnessSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LookupWitnessSource
impl Debug for LookupWitnessSource
Source§impl PartialEq for LookupWitnessSource
impl PartialEq for LookupWitnessSource
impl Eq for LookupWitnessSource
impl StructuralPartialEq for LookupWitnessSource
Auto Trait Implementations§
impl Freeze for LookupWitnessSource
impl RefUnwindSafe for LookupWitnessSource
impl Send for LookupWitnessSource
impl Sync for LookupWitnessSource
impl Unpin for LookupWitnessSource
impl UnsafeUnpin for LookupWitnessSource
impl UnwindSafe for LookupWitnessSource
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
Mutably borrows from an owned value. Read more
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>
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 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>
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