-
Notifications
You must be signed in to change notification settings - Fork 205
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
Refactored private keys usage in consensus #4758
Conversation
consensus/interface.go
Outdated
@@ -152,8 +152,8 @@ type ScheduledProcessor interface { | |||
// SignatureHandler defines the behaviour of a component that handles signatures in consensus | |||
type SignatureHandler interface { | |||
Reset(pubKeys []string) error | |||
CreateSignatureShare(msg []byte, index uint16, epoch uint32) ([]byte, error) | |||
CreateSignatureShareWithPrivateKey(message []byte, index uint16, epoch uint32, privateKeyBytes []byte) ([]byte, error) | |||
CreateSignatureShareUsingPublicKey(message []byte, index uint16, epoch uint32, publicKeyBytes []byte) ([]byte, error) |
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.
can you rename to CreateSignatureShareForPublicKey and CreateSignatureForPublicKey ?
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.
Renamed both methods to CreateSignatureShareForPublicKey
and CreateSignatureForPublicKey
Codecov ReportBase: 70.98% // Head: 70.99% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feat/multikey #4758 +/- ##
==============================================
Coverage 70.98% 70.99%
==============================================
Files 651 651
Lines 85415 85439 +24
==============================================
+ Hits 60634 60657 +23
+ Misses 20231 20228 -3
- Partials 4550 4554 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?