LookupContext

Struct LookupContext 

Source
struct LookupContext<G, F>
where G: CommitmentCurve, F: FftField,
{
Show 20 fields joint_combiner: Option<F>, table_id_combiner: Option<F>, dummy_lookup_value: Option<F>, joint_lookup_table: Option<DensePolynomial<F>>, joint_lookup_table_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>, sorted: Option<Vec<Evaluations<F, Radix2EvaluationDomain<F>>>>, sorted_coeffs: Option<Vec<DensePolynomial<F>>>, sorted_comms: Option<Vec<BlindedCommitment<G>>>, sorted8: Option<Vec<Evaluations<F, Radix2EvaluationDomain<F>>>>, aggreg_coeffs: Option<DensePolynomial<F>>, aggreg_comm: Option<BlindedCommitment<G>>, aggreg8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>, pub lookup_aggregation_eval: Option<PointEvaluations<Vec<F>>>, pub lookup_table_eval: Option<PointEvaluations<Vec<F>>>, pub lookup_sorted_eval: [Option<PointEvaluations<Vec<F>>>; 5], pub runtime_lookup_table_eval: Option<PointEvaluations<Vec<F>>>, runtime_table: Option<DensePolynomial<F>>, runtime_table_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>, runtime_table_comm: Option<BlindedCommitment<G>>, runtime_second_col_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>,
}
Expand description

Contains variables needed for lookup in the prover algorithm.

Fields§

§joint_combiner: Option<F>

The joint combiner used to join the columns of lookup tables

§table_id_combiner: Option<F>

The power of the joint_combiner that can be used to add a table_id column to the concatenated lookup tables.

§dummy_lookup_value: Option<F>

The combined lookup entry that can be used as dummy value

§joint_lookup_table: Option<DensePolynomial<F>>

The combined lookup table

§joint_lookup_table_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>§sorted: Option<Vec<Evaluations<F, Radix2EvaluationDomain<F>>>>

The sorted polynomials s in different forms

§sorted_coeffs: Option<Vec<DensePolynomial<F>>>§sorted_comms: Option<Vec<BlindedCommitment<G>>>§sorted8: Option<Vec<Evaluations<F, Radix2EvaluationDomain<F>>>>§aggreg_coeffs: Option<DensePolynomial<F>>

The aggregation polynomial in different forms

§aggreg_comm: Option<BlindedCommitment<G>>§aggreg8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>§lookup_aggregation_eval: Option<PointEvaluations<Vec<F>>>

evaluation of lookup aggregation polynomial

§lookup_table_eval: Option<PointEvaluations<Vec<F>>>

evaluation of lookup table polynomial

§lookup_sorted_eval: [Option<PointEvaluations<Vec<F>>>; 5]

evaluation of lookup sorted polynomials

§runtime_lookup_table_eval: Option<PointEvaluations<Vec<F>>>

evaluation of runtime lookup table polynomial

§runtime_table: Option<DensePolynomial<F>>

Runtime table

§runtime_table_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>§runtime_table_comm: Option<BlindedCommitment<G>>§runtime_second_col_d8: Option<Evaluations<F, Radix2EvaluationDomain<F>>>

Trait Implementations§

Source§

impl<G, F> Default for LookupContext<G, F>
where G: CommitmentCurve + Default, F: FftField + Default,

Source§

fn default() -> LookupContext<G, F>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<G, F> Freeze for LookupContext<G, F>
where F: Freeze,

§

impl<G, F> RefUnwindSafe for LookupContext<G, F>
where F: RefUnwindSafe, G: RefUnwindSafe, <G as AffineRepr>::ScalarField: RefUnwindSafe,

§

impl<G, F> Send for LookupContext<G, F>

§

impl<G, F> Sync for LookupContext<G, F>

§

impl<G, F> Unpin for LookupContext<G, F>
where F: Unpin, G: Unpin, <G as AffineRepr>::ScalarField: Unpin,

§

impl<G, F> UnwindSafe for LookupContext<G, F>
where F: UnwindSafe, G: UnwindSafe, <G as AffineRepr>::ScalarField: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V