Function halo2_base::utils::decompose_fe_to_u64_limbs
source · [−]pub fn decompose_fe_to_u64_limbs<F: ScalarField>(
e: &F,
number_of_limbs: usize,
bit_len: usize
) -> Vec<u64>
Expand description
Decomposes an immutable reference to a ScalarField element into number_of_limbs
limbs of bit_len
bits each and returns a Vec of u64 represented by those limbs.
Assumes bit_len
< 64
e
: immutable reference to ScalarField element to decomposenumber_of_limbs
: number of limbs to decomposee
intobit_len
: number of bits in each limb