Trait lambdaworks_math::elliptic_curve::edwards::traits::IsEdwards
source · pub trait IsEdwards:
IsEllipticCurve
+ Clone
+ Debug {
// Required methods
fn a() -> FieldElement<Self::BaseField>;
fn d() -> FieldElement<Self::BaseField>;
// Provided method
fn defining_equation(
x: &FieldElement<Self::BaseField>,
y: &FieldElement<Self::BaseField>,
) -> FieldElement<Self::BaseField> { ... }
}
Expand description
Trait to add elliptic curves behaviour to a struct.
Required Methods§
fn a() -> FieldElement<Self::BaseField>
fn d() -> FieldElement<Self::BaseField>
Provided Methods§
fn defining_equation( x: &FieldElement<Self::BaseField>, y: &FieldElement<Self::BaseField>, ) -> FieldElement<Self::BaseField>
Object Safety§
This trait is not object safe.