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§
sourceconst WEIERSTRASS_A: Self::BaseField
const WEIERSTRASS_A: Self::BaseField
The coefficient A
of the short Weierstrass curve.
sourceconst WEIERSTRASS_B: Self::BaseField
const WEIERSTRASS_B: Self::BaseField
The coefficient B
of the short Weierstrass curve.
sourceconst COFACTOR_INV: Self::ScalarField
const COFACTOR_INV: Self::ScalarField
The cofactor inverse of the short Weierstrass curve.
sourceconst AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField)
const AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField)
The affine generator of the short Weierstrass curve.
const PHI: Self::BaseField
sourceconst B1: Self::ScalarField
const B1: Self::ScalarField
B1 = x^2 - 1
sourceconst B2: Self::ScalarField
const B2: Self::ScalarField
B2 = x^2
sourceconst R128: Self::ScalarField
const R128: Self::ScalarField
R128 = 2^128 - 1