Re-export edwards_on_cp6_782 as edwards_on_bw6_761

This commit is contained in:
Pratyush Mishra
2020-06-10 13:27:49 -07:00
parent 40e89254e0
commit 7a0177e8c7
7 changed files with 36 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
use crate::groups::curves::twisted_edwards::AffineGadget;
use algebra::edwards_on_cp6_782::*;
use crate::edwards_on_cp6_782::FqGadget;
pub type EdwardsGadget = AffineGadget<EdwardsParameters, Fq, FqGadget>;
#[test]
fn test() {
crate::groups::curves::twisted_edwards::test::<_, EdwardsParameters, EdwardsGadget>();
}

View File

@@ -0,0 +1,9 @@
use crate::fields::fp::FpGadget;
use algebra::edwards_on_cp6_782::fq::Fq;
pub type FqGadget = FpGadget<Fq>;
#[test]
fn test() {
crate::fields::tests::field_test::<_, Fq, FqGadget>();
}

View File

@@ -0,0 +1 @@
pub use crate::instantiated::edwards_on_cp6_782::*;

View File

@@ -1,7 +1,7 @@
use crate::groups::curves::twisted_edwards::AffineGadget;
use algebra::edwards_on_cp6_782::*;
use crate::edwards_on_cp6_782::FqGadget;
use crate::instantiated::edwards_on_cp6_782::FqGadget;
pub type EdwardsGadget = AffineGadget<EdwardsParameters, Fq, FqGadget>;

View File

@@ -1,3 +1,5 @@
#![allow(unreachable_pub)]
mod curves;
mod fields;

View File

@@ -7,6 +7,12 @@ pub mod edwards_on_bls12_377;
#[cfg(feature = "edwards_on_cp6_782")]
pub mod edwards_on_cp6_782;
#[cfg(all(not(feature = "edwards_on_cp6_782"), feature = "edwards_on_bw6_761"))]
pub(crate) mod edwards_on_cp6_782;
#[cfg(feature = "edwards_on_bw6_761")]
pub mod edwards_on_bw6_761;
#[cfg(feature = "edwards_on_bls12_381")]
pub mod edwards_on_bls12_381;