halo2_base::utils

Function bigint_to_fe

Source
pub fn bigint_to_fe<F: BigPrimeField>(e: &BigInt) -> F
Expand description

Converts an immutable reference to BigInt to a BigPrimeField.

  • e: immutable reference to BigInt

ยงAssumptions:

  • The absolute value of e is less than the modulus of F