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