-
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
Signature handler component for consensus #4316
Signature handler component for consensus #4316
Conversation
- temporary mock for multisigner - unit tests - temp elrond-go-crypto version
Codecov Report
@@ Coverage Diff @@
## feat/kosk-bls-multisigner #4316 +/- ##
============================================================
Coverage ? 71.56%
============================================================
Files ? 666
Lines ? 86350
Branches ? 0
============================================================
Hits ? 61796
Misses ? 20142
Partials ? 4412 Continue to review full report at Codecov.
|
…factor to specify the current epoch
- use priv key as bytes in signature handler component - rename stub name
consensus/signing/signing.go
Outdated
if err != nil { | ||
return err | ||
} | ||
|
||
pubKeys := make([][]byte, 0) |
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.
since we have for example in metachain 400 in consensus group, this will cause a lot of re-allocations
maybe do
pubKeys := make([][]byte, 0, len(sh.data.pubKeys))
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.
done
Added a separate signature handler component for consensus, it is basically a wrapper over the new stateless multisigner from crypto. It keeps the associated public keys and signature shares used for consensus.