halo2_base::utils

Function 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 decompose
  • number_of_limbs: number of limbs to decompose e into
  • bit_len: number of bits in each limb