pub trait IsMontgomery:
    IsEllipticCurve
    + Clone
    + Debug {
    // Required methods
    fn a() -> FieldElement<Self::BaseField>;
    fn b() -> 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§

Provided Methods§

source

fn defining_equation( x: &FieldElement<Self::BaseField>, y: &FieldElement<Self::BaseField>, ) -> FieldElement<Self::BaseField>

Evaluates the short Weierstrass equation at (x, y z). Used for checking if [x: y: z] belongs to the elliptic curve.

Object Safety§

This trait is not object safe.

Implementors§