Update concrete curves in r1cs-std.

This commit is contained in:
Pratyush Mishra
2020-08-24 00:47:21 -07:00
parent 26953045d4
commit 50388bdc22
28 changed files with 157 additions and 157 deletions

View File

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

View File

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