-
Notifications
You must be signed in to change notification settings - Fork 80
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
core/sigagg: implement signature aggregation #192
Conversation
Codecov Report
@@ Coverage Diff @@
## main #192 +/- ##
=======================================
Coverage ? 52.43%
=======================================
Files ? 46
Lines ? 2935
Branches ? 0
=======================================
Hits ? 1539
Misses ? 1216
Partials ? 180 Continue to review full report at Codecov.
|
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.
Looks great!
core/sigagg/sigagg.go
Outdated
|
||
var ( | ||
blsSigs []*bls_sig.PartialSignature | ||
first core.ParSignedData |
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.
this variable name can be just data
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.
It implies we are taking the first data, so does convey extra meaning.
return err | ||
} | ||
|
||
if i == 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.
this step can be done to before for loop that way i think we will not need this if else
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.
Sure, but I like the fact that this means, if it is the first item, use it as reference, also compare the data against the first. If you split it out, then that logic is also split.
@@ -34,3 +38,90 @@ func RandomPubKey(t *testing.T) core.PubKey { | |||
|
|||
return pubkey | |||
} | |||
|
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.
Thanks for this! this was much needed for tests
Co-authored-by: Dhruv Bodani <dhruvbodani2510@gmail.com>
Implements the core workflow's signature aggregation component.
category: feature
ticket: #184