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 Vesta prime-order group.
|
||||
pub type GVar = ProjectiveVar<VestaParameters, FBaseVar>;
|
||||
pub type GVar = ProjectiveVar<VestaConfig, FBaseVar>;
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
ark_curve_constraint_tests::curves::sw_test::<VestaParameters, GVar>().unwrap();
|
||||
ark_curve_constraint_tests::curves::sw_test::<VestaConfig, GVar>().unwrap();
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ use ark_ff::{Field, MontFp, Zero};
|
||||
mod tests;
|
||||
|
||||
#[derive(Copy, Clone, Default, PartialEq, Eq)]
|
||||
pub struct VestaParameters;
|
||||
pub struct VestaConfig;
|
||||
|
||||
impl CurveConfig for VestaParameters {
|
||||
impl CurveConfig for VestaConfig {
|
||||
type BaseField = Fq;
|
||||
type ScalarField = Fr;
|
||||
|
||||
@@ -22,10 +22,10 @@ impl CurveConfig for VestaParameters {
|
||||
const COFACTOR_INV: Fr = Fr::ONE;
|
||||
}
|
||||
|
||||
pub type Affine = sw::Affine<VestaParameters>;
|
||||
pub type Projective = sw::Projective<VestaParameters>;
|
||||
pub type Affine = sw::Affine<VestaConfig>;
|
||||
pub type Projective = sw::Projective<VestaConfig>;
|
||||
|
||||
impl SWCurveConfig for VestaParameters {
|
||||
impl SWCurveConfig for VestaConfig {
|
||||
/// COEFF_A = 0
|
||||
const COEFF_A: Fq = Fq::ZERO;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user