pub struct PreprocessedLookupTable {
pub n: u32,
/* private fields */
}Expand description
This table will be the preprocessed version of the precomputed table, T, with arity 4. This structure is passed to the proof alongside the table of witness values.
Fields§
§n: u32This is the circuit size
Implementations§
Source§impl PreprocessedLookupTable
impl PreprocessedLookupTable
Sourcepub fn preprocess(
table: &LookupTable,
commit_key: &CommitKey,
n: u32,
) -> Result<Self, Error>
pub fn preprocess( table: &LookupTable, commit_key: &CommitKey, n: u32, ) -> Result<Self, Error>
This function takes in a precomputed look up table and pads it to the length of the circuit entries, as a power of 2. The function then interpolates a polynomial from the padded table and makes a commitment to the poly. The outputted struct will be used in the proof alongside our circuit witness table.
Trait Implementations§
Source§impl Clone for PreprocessedLookupTable
impl Clone for PreprocessedLookupTable
Source§fn clone(&self) -> PreprocessedLookupTable
fn clone(&self) -> PreprocessedLookupTable
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 PreprocessedLookupTable
impl Debug for PreprocessedLookupTable
Source§impl PartialEq for PreprocessedLookupTable
impl PartialEq for PreprocessedLookupTable
impl Eq for PreprocessedLookupTable
impl StructuralPartialEq for PreprocessedLookupTable
Auto Trait Implementations§
impl Freeze for PreprocessedLookupTable
impl RefUnwindSafe for PreprocessedLookupTable
impl Send for PreprocessedLookupTable
impl Sync for PreprocessedLookupTable
impl Unpin for PreprocessedLookupTable
impl UnwindSafe for PreprocessedLookupTable
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