Trait snarkvm_curves::traits::group::TwistedEdwardsParameters
source · pub trait TwistedEdwardsParameters: ModelParameters {
type MontgomeryParameters: MontgomeryParameters<BaseField = Self::BaseField>;
const EDWARDS_A: Self::BaseField;
const EDWARDS_D: Self::BaseField;
const COFACTOR: &'static [u64];
const COFACTOR_INV: Self::ScalarField;
const AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField);
fn mul_by_a(elem: &Self::BaseField) -> Self::BaseField { ... }
}
Required Associated Types§
type MontgomeryParameters: MontgomeryParameters<BaseField = Self::BaseField>
Required Associated Constants§
sourceconst COFACTOR_INV: Self::ScalarField
const COFACTOR_INV: Self::ScalarField
The cofactor inverse of the twisted Edwards curve.
sourceconst AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField)
const AFFINE_GENERATOR_COEFFS: (Self::BaseField, Self::BaseField)
The affine generator of the twisted Edwards curve.