pub trait ShortWeierstrassParameters: ModelParameters {
    const WEIERSTRASS_A: Self::BaseField;
    const WEIERSTRASS_B: Self::BaseField;
    const COFACTOR: &'static [u64];
    const COFACTOR_INV: Self::ScalarField;
    const AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField);
    const PHI: Self::BaseField;
    const B1: Self::ScalarField;
    const B2: Self::ScalarField;
    const R128: Self::ScalarField;
    const Q1: [u64; 4] = _;
    const Q2: [u64; 4] = _;
    const HALF_R: [u64; 8] = _;

    fn is_in_correct_subgroup_assuming_on_curve(p: &Affine<Self>) -> bool;
    fn glv_endomorphism(p: Affine<Self>) -> Affine<Self>;
    fn mul_projective(
        p: Projective<Self>,
        by: Self::ScalarField
    ) -> Projective<Self>; fn mul_by_a(elem: &Self::BaseField) -> Self::BaseField { ... } fn add_b(elem: &Self::BaseField) -> Self::BaseField { ... } }

Required Associated Constants§

The coefficient A of the short Weierstrass curve.

The coefficient B of the short Weierstrass curve.

The cofactor of the short Weierstrass curve.

The cofactor inverse of the short Weierstrass curve.

The affine generator of the short Weierstrass curve.

B1 = x^2 - 1

B2 = x^2

R128 = 2^128 - 1

Provided Associated Constants§

Q1 = x^2 * R / q

Q2 = R / q = 13

HALF_R = 2^256 / 2

Required Methods§

Provided Methods§

Implementors§