mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-27 22:23:48 +01:00
30 lines
978 B
Rust
30 lines
978 B
Rust
use crate::Parameters;
|
|
use ark_r1cs_std::groups::mnt4;
|
|
|
|
/// An element of G1 in the MNT4-753 bilinear group.
|
|
pub type G1Var = mnt4::G1Var<Parameters>;
|
|
/// An element of G2 in the MNT4-753 bilinear group.
|
|
pub type G2Var = mnt4::G2Var<Parameters>;
|
|
|
|
/// Represents the cached precomputation that can be performed on a G1 element
|
|
/// which enables speeding up pairing computation.
|
|
pub type G1PreparedVar = mnt4::G1PreparedVar<Parameters>;
|
|
/// Represents the cached precomputation that can be performed on a G2 element
|
|
/// which enables speeding up pairing computation.
|
|
pub type G2PreparedVar = mnt4::G2PreparedVar<Parameters>;
|
|
|
|
#[test]
|
|
fn test() {
|
|
use ark_ec::models::mnt4::MNT4Parameters;
|
|
ark_curve_constraint_tests::curves::sw_test::<
|
|
<Parameters as MNT4Parameters>::G1Parameters,
|
|
G1Var,
|
|
>()
|
|
.unwrap();
|
|
ark_curve_constraint_tests::curves::sw_test::<
|
|
<Parameters as MNT4Parameters>::G2Parameters,
|
|
G2Var,
|
|
>()
|
|
.unwrap();
|
|
}
|