arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
ark-curves-cherry-picked/bn254/src/fields/fq.rs
bn254/src/fields/fq.rsRaw
 1use ark_ff::fields::{Fp256, MontBackend, MontConfig, MontFp};
 2
 3#[derive(MontConfig)]
 4#[modulus = "21888242871839275222246405745257275088696311157297823662689037894645226208583"]
 5#[generator = "3"]
 6pub struct FqConfig;
 7pub type Fq = Fp256<MontBackend<FqConfig, 4>>;
 8
 9pub const FQ_ONE: Fq = MontFp!(Fq, "1");
10pub const FQ_ZERO: Fq = MontFp!(Fq, "0");