use ark_ec::bls12::{Bls12, Bls12Parameters, TwistType}; use crate::{Fq, Fq12Parameters, Fq2Parameters, Fq6Parameters}; pub mod g1; pub mod g2; #[cfg(test)] mod tests; pub use self::{ g1::{G1Affine, G1Projective}, g2::{G2Affine, G2Projective}, }; pub type Bls12_381 = Bls12; pub struct Parameters; impl Bls12Parameters for Parameters { const X: &'static [u64] = &[0xd201000000010000]; const X_IS_NEGATIVE: bool = true; const TWIST_TYPE: TwistType = TwistType::M; type Fp = Fq; type Fp2Params = Fq2Parameters; type Fp6Params = Fq6Parameters; type Fp12Params = Fq12Parameters; type G1Parameters = self::g1::Parameters; type G2Parameters = self::g2::Parameters; }