Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Add the small subgroup power for BN254 (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: mmagician <marcin.gorny.94@protonmail.com>
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
  • Loading branch information
3 people authored Sep 5, 2023
1 parent a0bd36f commit fc8379d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bn254/src/fields/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>;

0 comments on commit fc8379d

Please sign in to comment.