ark-r1cs-std/r1cs-std/src/instantiated/mnt6_753/curves.rs
r1cs-std/src/instantiated/mnt6_753/curves.rsRaw
1use crate::groups::mnt6;
2use algebra::mnt6_753::Parameters;
3
4/// An element of G1 in the MNT6-753 bilinear group.
5pub type G1Var = mnt6::G1Var<Parameters>;
6/// An element of G2 in the MNT6-753 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 algebra::curves::models::mnt6::MNT6Parameters;
19 crate::groups::curves::short_weierstrass::test::<
20 <Parameters as MNT6Parameters>::G1Parameters,
21 G1Var,
22 >()
23 .unwrap();
24 crate::groups::curves::short_weierstrass::test::<
25 <Parameters as MNT6Parameters>::G2Parameters,
26 G2Var,
27 >()
28 .unwrap();
29}