@ -1,10 +1,8 @@ | 
															
														|||||
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>;
 | 
																 | 
															
														||||
 | 
																pub use crate::Bls12_377;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    use crate::Bls12_377;
 | 
																    use crate::Bls12_377;
 | 
															
														||||
    ark_curve_constraint_tests::pairing::bilinearity_test::<Bls12_377, PairingVar>().unwrap()
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::pairing::bilinearity_test::<Bls12_377>().unwrap()
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<_, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<_, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<_, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::fields::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
																use ark_r1cs_std::groups::curves::twisted_edwards::AffineVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::fields::FqVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
																/// A variable that is the R1CS equivalent of `crate::EdwardsAffine`.
 | 
															
														||||
pub type EdwardsVar = AffineVar<EdwardsParameters, FqVar>;
 | 
																 | 
															
														||||
 | 
																pub type EdwardsVar = AffineVar<EdwardsParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters, EdwardsVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::te_test::<EdwardsParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,10 +1,8 @@ | 
															
														|||||
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>;
 | 
																 | 
															
														||||
 | 
																pub use crate::MNT4_298;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    use crate::MNT4_298;
 | 
																    use crate::MNT4_298;
 | 
															
														||||
    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT4_298, PairingVar>().unwrap()
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT4_298>().unwrap()
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,10 +1,8 @@ | 
															
														|||||
use crate::Parameters;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// Specifies the constraints for computing a pairing in the MNT4-753 bilinear group.
 | 
																/// Specifies the constraints for computing a pairing in the MNT4-753 bilinear group.
 | 
															
														||||
pub type PairingVar = ark_r1cs_std::pairing::mnt4::PairingVar<Parameters>;
 | 
																 | 
															
														||||
 | 
																pub use crate::MNT4_753;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    use crate::MNT4_753;
 | 
																    use crate::MNT4_753;
 | 
															
														||||
    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT4_753, PairingVar>().unwrap()
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT4_753>().unwrap()
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,10 +1,8 @@ | 
															
														|||||
use crate::Parameters;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// Specifies the constraints for computing a pairing in the MNT6-298 bilinear group.
 | 
																/// Specifies the constraints for computing a pairing in the MNT6-298 bilinear group.
 | 
															
														||||
pub type PairingVar = ark_r1cs_std::pairing::mnt6::PairingVar<Parameters>;
 | 
																 | 
															
														||||
 | 
																pub use crate::MNT6_298;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    use crate::MNT6_298;
 | 
																    use crate::MNT6_298;
 | 
															
														||||
    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT6_298, PairingVar>().unwrap()
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT6_298>().unwrap()
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,10 +1,8 @@ | 
															
														|||||
use crate::Parameters;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// Specifies the constraints for computing a pairing in the MNT6-753 bilinear group.
 | 
																/// Specifies the constraints for computing a pairing in the MNT6-753 bilinear group.
 | 
															
														||||
pub type PairingVar = ark_r1cs_std::pairing::mnt6::PairingVar<Parameters>;
 | 
																 | 
															
														||||
 | 
																pub use crate::MNT6_753;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    use crate::MNT6_753;
 | 
																    use crate::MNT6_753;
 | 
															
														||||
    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT6_753, PairingVar>().unwrap()
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::pairing::bilinearity_test::<MNT6_753>().unwrap()
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::short_weierstrass::ProjectiveVar;
 | 
																use ark_r1cs_std::groups::curves::short_weierstrass::ProjectiveVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FBaseVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A group element in the Pallas prime-order group.
 | 
																/// A group element in the Pallas prime-order group.
 | 
															
														||||
pub type GVar = ProjectiveVar<PallasParameters, FBaseVar>;
 | 
																 | 
															
														||||
 | 
																pub type GVar = ProjectiveVar<PallasParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::sw_test::<PallasParameters, GVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::sw_test::<PallasParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||
@ -1,12 +1,10 @@ | 
															
														|||||
use crate::*;
 | 
																use crate::*;
 | 
															
														||||
use ark_r1cs_std::groups::curves::short_weierstrass::ProjectiveVar;
 | 
																use ark_r1cs_std::groups::curves::short_weierstrass::ProjectiveVar;
 | 
															
														||||
 | 
																
 | 
															
														||||
use crate::constraints::FBaseVar;
 | 
																 | 
															
														||||
 | 
																 | 
															
														||||
/// A group element in the Vesta prime-order group.
 | 
																/// A group element in the Vesta prime-order group.
 | 
															
														||||
pub type GVar = ProjectiveVar<VestaParameters, FBaseVar>;
 | 
																 | 
															
														||||
 | 
																pub type GVar = ProjectiveVar<VestaParameters>;
 | 
															
														||||
 | 
																
 | 
															
														||||
#[test]
 | 
																#[test]
 | 
															
														||||
fn test() {
 | 
																fn test() {
 | 
															
														||||
    ark_curve_constraint_tests::curves::sw_test::<VestaParameters, GVar>().unwrap();
 | 
																 | 
															
														||||
 | 
																    ark_curve_constraint_tests::curves::sw_test::<VestaParameters>().unwrap();
 | 
															
														||||
}
 | 
																}
 | 
															
														||||