Function bellperson::gadgets::multipack::pack_bits
source ยท pub fn pack_bits<Scalar, CS>(
cs: CS,
bits: &[Boolean],
) -> Result<AllocatedNum<Scalar>, SynthesisError>where
Scalar: PrimeField,
CS: ConstraintSystem<Scalar>,
Expand description
Takes a sequence of booleans and exposes them as a single compact Num.