Browse Source

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>
master
Weikeng Chen 1 year ago
committed by GitHub
parent
commit
fc8379d9ed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bn254/src/fields/fr.rs

+ 2
- 0
bn254/src/fields/fr.rs

@ -3,5 +3,7 @@ use ark_ff::fields::{Fp256, MontBackend, MontConfig};
#[derive(MontConfig)] #[derive(MontConfig)]
#[modulus = "21888242871839275222246405745257275088548364400416034343698204186575808495617"] #[modulus = "21888242871839275222246405745257275088548364400416034343698204186575808495617"]
#[generator = "5"] #[generator = "5"]
#[small_subgroup_base = "3"]
#[small_subgroup_power = "2"]
pub struct FrConfig; pub struct FrConfig;
pub type Fr = Fp256<MontBackend<FrConfig, 4>>; pub type Fr = Fp256<MontBackend<FrConfig, 4>>;

Loading…
Cancel
Save