Trait snarkvm_gadgets::traits::select::TwoBitLookupGadget [−][src]
pub trait TwoBitLookupGadget<F: Field> where
Self: Sized, { type TableConstant; fn two_bit_lookup<CS: ConstraintSystem<F>>(
cs: CS,
bits: &[Boolean],
constants: &[Self::TableConstant]
) -> Result<Self, SynthesisError>; fn cost() -> usize; }
Expand description
Uses two bits to perform a lookup into a table