Trait snarkvm_wasm::TwoBitLookupGadget[][src]

pub trait TwoBitLookupGadget<F> where
    F: Field
{ type TableConstant; fn two_bit_lookup<CS>(
        cs: CS,
        bits: &[Boolean],
        constants: &[Self::TableConstant]
    ) -> Result<Self, SynthesisError>
    where
        CS: ConstraintSystem<F>
;
fn cost() -> usize; }
Expand description

Uses two bits to perform a lookup into a table

Associated Types

Required methods

Implementors