ark_test_curves/fp128.rs
1//! Prime field `Fp` where `p = 2^127 - 1`.
2use ark_ff::fields::{Fp128, MontBackend};
3
4#[derive(ark_ff::MontConfig)]
5#[modulus = "170141183460469231731687303715884105727"]
6#[generator = "43"]
7pub struct FqConfig;
8pub type Fq = Fp128<MontBackend<FqConfig, 2>>;
9
10#[cfg(test)]
11mod tests {
12 use super::*;
13 use ark_algebra_test_templates::*;
14 test_field!(fq; Fq; mont_prime_field);
15}