ark-curves-cherry-picked/mnt6_753/src/constraints/curves.rs
mnt6_753/src/constraints/curves.rsRaw
1use ark_r1cs_std::groups::mnt6;
2
3use crate::Config;
4
5/// An element of G1 in the MNT6-753 bilinear group.
6pub type G1Var = mnt6::G1Var<Config>;
7/// An element of G2 in the MNT6-753 bilinear group.
8pub type G2Var = mnt6::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 = mnt6::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 = mnt6::G2PreparedVar<Config>;
16
17#[test]
18fn test() {
19 use ark_ec::models::mnt6::MNT6Config;
20 ark_curve_constraint_tests::curves::sw_test::<<Config as MNT6Config>::G1Config, G1Var>()
21 .unwrap();
22 ark_curve_constraint_tests::curves::sw_test::<<Config as MNT6Config>::G2Config, G2Var>()
23 .unwrap();
24}