Function halo2_base::utils::fe_to_bigint
source · [−]pub fn fe_to_bigint<F: BigPrimeField>(fe: &F) -> BigInt
Expand description
Converts a BigPrimeField element into a BigInt element by sending fe
in [0, F::modulus())
to
ⓘ
fe, if fe < F::modulus() / 2
fe - F::modulus(), otherwise