Implement ed_on_bn254 curve (baby-jubjub) (#230)

This commit is contained in:
Youssef El Housni
2020-07-01 21:25:02 +02:00
committed by GitHub
parent a83914af50
commit 36305e7247
6 changed files with 32 additions and 1 deletions

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
mod curves;
mod fields;
pub use curves::*;
pub use fields::*;