Skip to content

Improve curves high-level structs and traits #62

@bgrieder

Description

@bgrieder

The implementing structs and traits for curves need to be revisited so that we can have high-level traits that cover all the possible curves.
There should be 4 of them.

  • One for a Scalar
  • One for a Private Key (which can be built from a Scalar)
  • One for a (Curve) Point (which can be built from a Scalar)
  • One for a PublicKey (which can be built from a Curve Point and a PrivateKey)

Also, let us try to use associated types and const as much as possible here since:

  • these traits are linked
  • const generics "leak" everywhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions