Function bellperson::gadgets::multipack::pack_bits[][src]

pub fn pack_bits<E, CS>(
    cs: CS,
    bits: &[Boolean]
) -> Result<AllocatedNum<E>, SynthesisError> where
    E: ScalarEngine,
    CS: ConstraintSystem<E>, 
Expand description

Takes a sequence of booleans and exposes them as a single compact Num.