mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-27 14:13:46 +01:00
Upgrade to work with latest ark-ff (#95)
Co-authored-by: Sun <huachuang20@gmail.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::Parameters;
|
||||
use ark_ec::bls12::Bls12Parameters;
|
||||
use ark_ec::ModelParameters;
|
||||
use ark_ec::{bls12::Bls12Parameters, ModelParameters};
|
||||
use ark_r1cs_std::{
|
||||
fields::fp::FpVar,
|
||||
groups::{bls12, curves::twisted_edwards::AffineVar as TEAffineVar},
|
||||
};
|
||||
|
||||
use crate::Parameters;
|
||||
|
||||
/// An element of G1 in the BLS12-377 bilinear group.
|
||||
pub type G1Var = bls12::G1Var<Parameters>;
|
||||
/// An element of G2 in the BLS12-377 bilinear group.
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
use crate::{Fq, Fq12Parameters, Fq2Parameters, Fq6Parameters};
|
||||
|
||||
use ark_r1cs_std::fields::{fp::FpVar, fp12::Fp12Var, fp2::Fp2Var, fp6_3over2::Fp6Var};
|
||||
|
||||
use crate::{Fq, Fq12Config, Fq2Config, Fq6Config};
|
||||
|
||||
/// 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::Fq6`.
|
||||
pub type Fq6Var = Fp6Var<Fq6Parameters>;
|
||||
pub type Fq6Var = Fp6Var<Fq6Config>;
|
||||
/// A variable that is the R1CS equivalent of `crate::Fq12`.
|
||||
pub type Fq12Var = Fp12Var<Fq12Parameters>;
|
||||
pub type Fq12Var = Fp12Var<Fq12Config>;
|
||||
|
||||
#[test]
|
||||
fn bls12_377_field_test() {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use crate::Parameters;
|
||||
|
||||
/// Specifies the constraints for computing a pairing in the BLS12-377 bilinear group.
|
||||
/// Specifies the constraints for computing a pairing in the BLS12-377 bilinear
|
||||
/// group.
|
||||
pub type PairingVar = ark_r1cs_std::pairing::bls12::PairingVar<Parameters>;
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user