mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-14 01:41:31 +01:00
Update concrete curves in r1cs-std.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user