pub trait PrimeCurveParams: PrimeCurve + CurveArithmetic + CurveArithmetic<AffinePoint = AffinePoint<Self>> + CurveArithmetic<ProjectivePoint = ProjectivePoint<Self>> {
    type FieldElement: PrimeField<Repr = FieldBytes<Self>>;
    type PointArithmetic: PointArithmetic<Self>;

    const EQUATION_A: Self::FieldElement;
    const EQUATION_B: Self::FieldElement;
    const GENERATOR: (Self::FieldElement, Self::FieldElement);
}
Expand description

Parameters for elliptic curves of prime order which can be described by the short Weierstrass equation.

Required Associated Types§

source

type FieldElement: PrimeField<Repr = FieldBytes<Self>>

Base field element type.

source

type PointArithmetic: PointArithmetic<Self>

Point arithmetic implementation, might be optimized for this specific curve

Required Associated Constants§

source

const EQUATION_A: Self::FieldElement

Coefficient a in the curve equation.

source

const EQUATION_B: Self::FieldElement

Coefficient b in the curve equation.

source

const GENERATOR: (Self::FieldElement, Self::FieldElement)

Generator point’s affine coordinates: (x, y).

Object Safety§

This trait is not object safe.

Implementors§