Rename all *Parameters to *Config (#136)

* Rename all `*Parameters` to `*Config`

* Tweak
This commit is contained in:
Pratyush Mishra
2022-12-16 22:35:32 -05:00
committed by GitHub
parent f8a6a4050e
commit febd7635fb
63 changed files with 382 additions and 414 deletions

View File

@@ -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();
}

View File

@@ -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;