mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-12 00:41:32 +01:00
Re-export edwards_on_cp6_782 as edwards_on_bw6_761
This commit is contained in:
11
r1cs-std/src/instantiated/edwards_on_bw6_761/curves.rs
Normal file
11
r1cs-std/src/instantiated/edwards_on_bw6_761/curves.rs
Normal 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>();
|
||||
}
|
||||
9
r1cs-std/src/instantiated/edwards_on_bw6_761/fields.rs
Normal file
9
r1cs-std/src/instantiated/edwards_on_bw6_761/fields.rs
Normal 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>();
|
||||
}
|
||||
1
r1cs-std/src/instantiated/edwards_on_bw6_761/mod.rs
Normal file
1
r1cs-std/src/instantiated/edwards_on_bw6_761/mod.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub use crate::instantiated::edwards_on_cp6_782::*;
|
||||
@@ -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>;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#![allow(unreachable_pub)]
|
||||
|
||||
mod curves;
|
||||
mod fields;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user