Skip to content

Improve Structs and Traits #1038

@jotabulacios

Description

@jotabulacios

Review IsEllipticCurve, shortWeierstrassProjectivePoint, ProjectivePoint.

For example:

pub struct ProjectivePoint<E: IsEllipticCurve> {
    pub value: [FieldElement<E::BaseField>; 3],
}

or

pub struct ShortWeierstrassProjectivePoint<E: IsEllipticCurve>(ProjectivePoint<E>);

It could be defined with a named field like point: ProjectivePoint<E>, so we can avoid using .0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions