mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-11 08:21:33 +01:00
Upgrade to work with latest ark-ff (#95)
Co-authored-by: Sun <huachuang20@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use crate::Parameters;
|
||||
use ark_r1cs_std::groups::mnt4;
|
||||
|
||||
use crate::Parameters;
|
||||
|
||||
/// An element of G1 in the MNT4-298 bilinear group.
|
||||
pub type G1Var = mnt4::G1Var<Parameters>;
|
||||
/// An element of G2 in the MNT4-298 bilinear group.
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
use crate::{Fq, Fq2Parameters, Fq4Parameters};
|
||||
|
||||
use ark_r1cs_std::fields::{fp::FpVar, fp2::Fp2Var, fp4::Fp4Var};
|
||||
|
||||
use crate::{Fq, Fq2Config, Fq4Config};
|
||||
|
||||
/// A variable that is the R1CS equivalent of `crate::Fq`.
|
||||
pub type FqVar = FpVar<Fq>;
|
||||
/// A variable that is the R1CS equivalent of `crate::Fq2`.
|
||||
pub type Fq2Var = Fp2Var<Fq2Parameters>;
|
||||
pub type Fq2Var = Fp2Var<Fq2Config>;
|
||||
/// A variable that is the R1CS equivalent of `crate::Fq4`.
|
||||
pub type Fq4Var = Fp4Var<Fq4Parameters>;
|
||||
pub type Fq4Var = Fp4Var<Fq4Config>;
|
||||
|
||||
#[test]
|
||||
fn mnt4_298_field_gadgets_test() {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use crate::Parameters;
|
||||
|
||||
/// Specifies the constraints for computing a pairing in the MNT4-298 bilinear group.
|
||||
/// Specifies the constraints for computing a pairing in the MNT4-298 bilinear
|
||||
/// group.
|
||||
pub type PairingVar = ark_r1cs_std::pairing::mnt4::PairingVar<Parameters>;
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user