use algebra::bls12_377::{Fq, Fq12Parameters, Fq2Parameters, Fq6Parameters}; use crate::fields::{fp::FpVar, fp12::Fp12Var, fp2::Fp2Var, fp6_3over2::Fp6Var}; /// A variable that is the R1CS equivalent of `algebra::bls12_377::Fq`. pub type FqVar = FpVar; /// A variable that is the R1CS equivalent of `algebra::bls12_377::Fq2`. pub type Fq2Var = Fp2Var; /// A variable that is the R1CS equivalent of `algebra::bls12_377::Fq6`. pub type Fq6Var = Fp6Var; /// A variable that is the R1CS equivalent of `algebra::bls12_377::Fq12`. pub type Fq12Var = Fp12Var; #[test] fn bls12_377_field_test() { use super::*; use crate::fields::tests::*; use algebra::bls12_377::{Fq, Fq12, Fq2, Fq6}; field_test::<_, _, FqVar>().unwrap(); frobenius_tests::(13).unwrap(); field_test::<_, _, Fq2Var>().unwrap(); frobenius_tests::(13).unwrap(); field_test::<_, _, Fq6Var>().unwrap(); frobenius_tests::(13).unwrap(); field_test::<_, _, Fq12Var>().unwrap(); frobenius_tests::(13).unwrap(); }