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::Config;
4
5/// An element of G1 in the MNT4-298 bilinear group.
6pub type G1Var = mnt4::G1Var<Config>;
7/// An element of G2 in the MNT4-298 bilinear group.
8pub type G2Var = mnt4::G2Var<Config>;
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<Config>;
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<Config>;
16
17#[test]
18fn test() {
19 use ark_ec::models::mnt4::MNT4Config;
20 ark_curve_constraint_tests::curves::sw_test::<<Config as MNT4Config>::G1Config, G1Var>()
21 .unwrap();
22 ark_curve_constraint_tests::curves::sw_test::<<Config as MNT4Config>::G2Config, G2Var>()
23 .unwrap();
24}