logo

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

Initialses empty witness table of arity 4

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.

Attempts to look up a value from a lookup table. If successful, all four elements are pushed to their respective multisets.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.