-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eddsa): Added EDDSA crypto module #112
Conversation
Added EDDSA(25519 curve) crypto module to the framework. Current design for eddsa module is messy, this PR is a starting point to take this activity. Need to discuss with others.
This is an attempt at making the MultiSignature type be generic so that impl can be switched at the top level instead of nested.
While converting the quorum signature from proto, initialization of the multi signature is causing type conversion failures in the crypto modules.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #112 +/- ##
==========================================
+ Coverage 61.67% 62.52% +0.85%
==========================================
Files 77 79 +2
Lines 7433 7576 +143
==========================================
+ Hits 4584 4737 +153
+ Misses 2548 2537 -11
- Partials 301 302 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small adjustments should do it.
Addressed review comments except for the comment in keygen.go file, as it would add a switch case in the orchestration layer. Tried to add more cases, this mock layer is not very flexible to add more negative cases.
We now use ed25519.PublicKey directly instead of []byte. The ed25519.PublicKey is a type alias for []byte, but it is best to use the correct type.
Added EDDSA(25519 curve) crypto module to the framework.
The current design for eddsa module is messy, this PR is a starting point to take this activity.
Need to discuss with others.