ark-curves-cherry-picked/mnt4_298/src/constraints/curves.rs
mnt4_298/src/constraints/curves.rsRaw
1use ark_r1cs_std::groups::mnt4;
2
3use crate::Parameters;
4
5/// An element of G1 in the MNT4-298 bilinear group.
6pub type G1Var = mnt4::G1Var<Parameters>;
7/// An element of G2 in the MNT4-298 bilinear group.
8pub type G2Var = mnt4::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 = mnt4::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 = mnt4::G2PreparedVar<Parameters>;
16
17#[test]
18fn test() {
19 use ark_ec::models::mnt4::MNT4Parameters;
20 ark_curve_constraint_tests::curves::sw_test::<
21 <Parameters as MNT4Parameters>::G1Parameters,
22 G1Var,
23 >()
24 .unwrap();
25 ark_curve_constraint_tests::curves::sw_test::<
26 <Parameters as MNT4Parameters>::G2Parameters,
27 G2Var,
28 >()
29 .unwrap();
30}