ark-curves-cherry-picked/mnt6_298/src/constraints/curves.rs
mnt6_298/src/constraints/curves.rsRaw
1use crate::Parameters;
2use ark_r1cs_std::groups::mnt6;
3
4/// An element of G1 in the MNT6-298 bilinear group.
5pub type G1Var = mnt6::G1Var<Parameters>;
6/// An element of G2 in the MNT6-298 bilinear group.
7pub type G2Var = mnt6::G2Var<Parameters>;
8
9/// Represents the cached precomputation that can be performed on a G1 element
10/// which enables speeding up pairing computation.
11pub type G1PreparedVar = mnt6::G1PreparedVar<Parameters>;
12/// Represents the cached precomputation that can be performed on a G2 element
13/// which enables speeding up pairing computation.
14pub type G2PreparedVar = mnt6::G2PreparedVar<Parameters>;
15
16#[test]
17fn test() {
18 use ark_ec::models::mnt6::MNT6Parameters;
19 ark_curve_constraint_tests::curves::sw_test::<<Parameters as MNT6Parameters>::G1Parameters>()
20 .unwrap();
21 ark_curve_constraint_tests::curves::sw_test::<<Parameters as MNT6Parameters>::G2Parameters>()
22 .unwrap();
23}