halo2_base::utils

Function power_of_two

Source
pub fn power_of_two<F: BigPrimeField>(n: usize) -> F
Expand description

Returns the BigPrimeField element of 2n.

  • n: the desired power of 2.