mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-27 14:13:46 +01:00
Co-authored-by: Michele Orrù <michele.orru@berkeley.edu> Co-authored-by: Weikeng Chen <w.k@berkeley.edu> Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
27 lines
1.7 KiB
Rust
27 lines
1.7 KiB
Rust
use ark_ff::{
|
|
fields::fp6_2over3::{Fp6, Fp6Config},
|
|
AdditiveGroup, Field, MontFp,
|
|
};
|
|
|
|
use crate::{Fq, Fq3, Fq3Config};
|
|
|
|
pub type Fq6 = Fp6<Fq6Config>;
|
|
|
|
pub struct Fq6Config;
|
|
|
|
impl Fp6Config for Fq6Config {
|
|
type Fp3Config = Fq3Config;
|
|
|
|
/// NONRESIDUE = (0, 1, 0).
|
|
const NONRESIDUE: Fq3 = Fq3::new(Fq::ZERO, Fq::ONE, Fq::ZERO);
|
|
|
|
const FROBENIUS_COEFF_FP6_C1: &'static [Fq] = &[
|
|
Fq::ONE,
|
|
MontFp!("2416169158604010336818399199316106389588878314690767988978701685873498866746813334102117883272276610365242925950967572554030909749205624998805208910209389668659757274773858916683688639755413288353778854399286396639505385648830027756862"),
|
|
MontFp!("2416169158604010336818399199316106389588878314690767988978701685873498866746813334102117883272276610365242925950967572554030909749205624998805208910209389668659757274773858916683688639755413288353778854399286396639505385648830027756861"),
|
|
MontFp!("22369874298875696930346742206501054934775599465297184582183496627646774052458024540232479018147881220178054575403841904557897715222633333372134756426301062487682326574958588001132586331462553235407484089304633076250782629492557320825576"),
|
|
MontFp!("19953705140271686593528343007184948545186721150606416593204794941773275185711211206130361134875604609812811649452874332003866805473427708373329547516091672819022569300184729084448897691707139947053705234905346679611277243843727293068715"),
|
|
MontFp!("19953705140271686593528343007184948545186721150606416593204794941773275185711211206130361134875604609812811649452874332003866805473427708373329547516091672819022569300184729084448897691707139947053705234905346679611277243843727293068716"),
|
|
];
|
|
}
|