mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-17 03:01:29 +01:00
Prepare release 0.4 (#109)
* Bump the dependencies and remove patch * temp remove dev-dependencies (until curves are published) due to circular dev-dependencies * bring back dev-dependencies to be merged only after curves crates are released * bump patch version * fix * use frobenius_map_in_place instead of frobenious_map * temp remove dev dependencies * chore: Release ark-r1cs-std version 0.4.0-alpha.2 * Revert "temp remove dev dependencies" This reverts commit 6b3ba6a5e98ea2055222d459d84d49eab7a98d47. * fix test import after curves have a new version * chore: Release ark-r1cs-std version 0.4.0-alpha.3 Co-authored-by: onewayfunc <onewayfunc@gmail.com>
This commit is contained in:
@@ -6,16 +6,16 @@ use crate::{
|
||||
fields::{fp::FpVar, fp12::Fp12Var, fp2::Fp2Var, FieldVar},
|
||||
groups::bls12::{G1AffineVar, G1PreparedVar, G1Var, G2PreparedVar, G2Var},
|
||||
};
|
||||
use ark_ec::bls12::{Bls12, Bls12Parameters, TwistType};
|
||||
use ark_ec::bls12::{Bls12, Bls12Config, TwistType};
|
||||
use ark_ff::BitIteratorBE;
|
||||
use ark_std::marker::PhantomData;
|
||||
|
||||
/// Specifies the constraints for computing a pairing in a BLS12 bilinear group.
|
||||
pub struct PairingVar<P: Bls12Parameters>(PhantomData<P>);
|
||||
pub struct PairingVar<P: Bls12Config>(PhantomData<P>);
|
||||
|
||||
type Fp2V<P> = Fp2Var<<P as Bls12Parameters>::Fp2Config>;
|
||||
type Fp2V<P> = Fp2Var<<P as Bls12Config>::Fp2Config>;
|
||||
|
||||
impl<P: Bls12Parameters> PairingVar<P> {
|
||||
impl<P: Bls12Config> PairingVar<P> {
|
||||
// Evaluate the line function at point p.
|
||||
#[tracing::instrument(target = "r1cs")]
|
||||
fn ell(
|
||||
@@ -59,7 +59,7 @@ impl<P: Bls12Parameters> PairingVar<P> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<P: Bls12Parameters> PG<Bls12<P>, P::Fp> for PairingVar<P> {
|
||||
impl<P: Bls12Config> PG<Bls12<P>, P::Fp> for PairingVar<P> {
|
||||
type G1Var = G1Var<P>;
|
||||
type G2Var = G2Var<P>;
|
||||
type G1PreparedVar = G1PreparedVar<P>;
|
||||
|
||||
Reference in New Issue
Block a user