mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-09 07:21:30 +01:00
Add supplementary small group bases for some common fields (#137)
* update * use r1cs std * fix * rem * Apply suggestions from code review Co-authored-by: onewayfunc <onewayfunc@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ ark-ff = { version = "0.4.0-alpha", default-features = false }
|
||||
ark-ec = { version = "0.4.0-alpha", default-features = false }
|
||||
ark-std = { version = "0.4.0-alpha", default-features = false }
|
||||
ark-r1cs-std = { version = "0.4.0-alpha", default-features = false, optional = true }
|
||||
ark-curve25519 = { path = "../curve25519" }
|
||||
|
||||
[dev-dependencies]
|
||||
ark-relations = { version = "0.4.0-alpha", default-features = false }
|
||||
|
||||
@@ -1,7 +1 @@
|
||||
use ark_ff::fields::{Fp256, MontBackend, MontConfig};
|
||||
|
||||
#[derive(MontConfig)]
|
||||
#[modulus = "57896044618658097711785492504343953926634992332820282019728792003956564819949"]
|
||||
#[generator = "2"]
|
||||
pub struct FqConfig;
|
||||
pub type Fq = Fp256<MontBackend<FqConfig, 4>>;
|
||||
pub use ark_curve25519::{Fq, FqConfig};
|
||||
|
||||
@@ -1,7 +1 @@
|
||||
use ark_ff::fields::{Fp256, MontBackend, MontConfig};
|
||||
|
||||
#[derive(MontConfig)]
|
||||
#[modulus = "7237005577332262213973186563042994240857116359379907606001950938285454250989"]
|
||||
#[generator = "2"]
|
||||
pub struct FrConfig;
|
||||
pub type Fr = Fp256<MontBackend<FrConfig, 4>>;
|
||||
pub use ark_curve25519::{Fr, FrConfig};
|
||||
|
||||
Reference in New Issue
Block a user