arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
Add the small subgroup power for BN254 (#163)

Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Weikeng Chen w.k@berkeley.edu
Tue, 05 Sep 2023 05:39:34 -0700
commit

fc8379d9edfa4b1cf63c9f008c8a2d9deaf7024a

parent

a0bd36f781d94df045ff135905d5f84e76b08deb

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M bn254/src/fields/fr.rs → bn254/src/fields/fr.rs

@@ -3,5 +3,7 @@

#[derive(MontConfig)] #[modulus = "21888242871839275222246405745257275088548364400416034343698204186575808495617"] #[generator = "5"] +#[small_subgroup_base = "3"] +#[small_subgroup_power = "2"] pub struct FrConfig; pub type Fr = Fp256<MontBackend<FrConfig, 4>>;