mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-09 07:21:30 +01:00
Rename all *Parameters to *Config (#136)
* Rename all `*Parameters` to `*Config` * Tweak
This commit is contained in:
@@ -3,9 +3,9 @@ use ark_r1cs_std::groups::curves::short_weierstrass::ProjectiveVar;
|
||||
use crate::{constraints::FBaseVar, *};
|
||||
|
||||
/// A group element in the Pallas prime-order group.
|
||||
pub type GVar = ProjectiveVar<PallasParameters, FBaseVar>;
|
||||
pub type GVar = ProjectiveVar<PallasConfig, FBaseVar>;
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
ark_curve_constraint_tests::curves::sw_test::<PallasParameters, GVar>().unwrap();
|
||||
ark_curve_constraint_tests::curves::sw_test::<PallasConfig, GVar>().unwrap();
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ use crate::{fq::Fq, fr::Fr};
|
||||
mod tests;
|
||||
|
||||
#[derive(Copy, Clone, Default, PartialEq, Eq)]
|
||||
pub struct PallasParameters;
|
||||
pub struct PallasConfig;
|
||||
|
||||
impl CurveConfig for PallasParameters {
|
||||
impl CurveConfig for PallasConfig {
|
||||
type BaseField = Fq;
|
||||
type ScalarField = Fr;
|
||||
|
||||
@@ -23,10 +23,10 @@ impl CurveConfig for PallasParameters {
|
||||
const COFACTOR_INV: Fr = Fr::ONE;
|
||||
}
|
||||
|
||||
pub type Affine = sw::Affine<PallasParameters>;
|
||||
pub type Projective = sw::Projective<PallasParameters>;
|
||||
pub type Affine = sw::Affine<PallasConfig>;
|
||||
pub type Projective = sw::Projective<PallasConfig>;
|
||||
|
||||
impl SWCurveConfig for PallasParameters {
|
||||
impl SWCurveConfig for PallasConfig {
|
||||
/// COEFF_A = 0
|
||||
const COEFF_A: Fq = Fq::ZERO;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user