mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-08 15:01:29 +01:00
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>
This commit is contained in:
@@ -3,5 +3,7 @@ use ark_ff::fields::{Fp256, MontBackend, MontConfig};
|
||||
#[derive(MontConfig)]
|
||||
#[modulus = "21888242871839275222246405745257275088548364400416034343698204186575808495617"]
|
||||
#[generator = "5"]
|
||||
#[small_subgroup_base = "3"]
|
||||
#[small_subgroup_power = "2"]
|
||||
pub struct FrConfig;
|
||||
pub type Fr = Fp256<MontBackend<FrConfig, 4>>;
|
||||
|
||||
Reference in New Issue
Block a user