-
Notifications
You must be signed in to change notification settings - Fork 6
Add support of curves with larger scalar sizes #58
Copy link
Copy link
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Currently, the crate only supports curves with scalars of 32 bytes. We want to expand it to work with curves that have scalar size
The size of the scalar has been hardcoded into library in several places, therefore if we simply add a curve with larger scalar size, library will break in some places causing runtime panics.
Expected development path:
- Add curves with different scalar sizes to the library, update all tests to use these curves, and observe what tests get broken
- Fix the issues until tests pass
- Update
cggmp24andgivrecrates to support these curves, update all tests to use these curves and make sure all tests pass - Carefully review the library to identify any other places where we could make assumptions on the scalar size
Once all of this is done, we can release a new version of generic-ec[-curves] with the added curves. Preferably, that would be a release without any breaking changes in API unless we absolutely have to break the API.
Related work:
- Fix hardcoded scalar size in multiscalar multiplication Fix hardcoded scalar size in Straus NAF computation #57
If you're willing to take part in development, reach out to us in discord #lockness-contribute channel.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed