Struct fullcodec_plonk::plonkup::WitnessTable [−][src]
pub struct WitnessTable {
pub f_1: MultiSet,
pub f_2: MultiSet,
pub f_3: MultiSet,
pub f_4: MultiSet,
}
Expand description
This witness table contains quieries to a lookup table for lookup gates This table is of arity 3.
Fields
f_1: MultiSet
This column represents the first values inside the lookup table. At gate checks, this can be regarded as the first wire
f_2: MultiSet
This column represents the first values inside the lookup table. At gate checks, this can be regarded as the second wire
f_3: MultiSet
This column represents the first values inside the lookup table. At gate checks, this can be regarded as the third wire
f_4: MultiSet
This column represents the first values inside the lookup table. At gate checks, this can be regarded as the fourth wire
Implementations
This allows the witness table to be filled directly without taking any vaules, or the the results, from the lookup table. If the values do no exists in the lookup table, then the proof will fail when witness and preprocessed tables are concatenated.
pub fn value_from_table(
&mut self,
lookup_table: &LookupTable,
left_wire_val: BlsScalar,
right_wire_val: BlsScalar,
fourth_wire_val: BlsScalar
) -> Result<(), Error>
pub fn value_from_table(
&mut self,
lookup_table: &LookupTable,
left_wire_val: BlsScalar,
right_wire_val: BlsScalar,
fourth_wire_val: BlsScalar
) -> Result<(), Error>
Attempts to look up a value from a lookup table. If successful, all four elements are pushed to their respective multisets.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WitnessTable
impl Send for WitnessTable
impl Sync for WitnessTable
impl Unpin for WitnessTable
impl UnwindSafe for WitnessTable
Blanket Implementations
Mutably borrows from an owned value. Read more