-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use signature for SignedAggregateAttestationAndProof
#5605
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5605 +/- ##
==========================================
+ Coverage 12.68% 13.04% +0.35%
==========================================
Files 113 116 +3
Lines 9169 9285 +116
==========================================
+ Hits 1163 1211 +48
- Misses 7803 7865 +62
- Partials 203 209 +6 |
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.
Please add a regression test for this
} | ||
if _, err := bls.SignatureFromBytes(sig); err != nil { | ||
t.Fatal(err) | ||
} |
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 add a sig verify or something for this?
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 is sufficient. We just want to verify that it's a "valid" BLS signature which was where the regression is. As we previously use signing root instead of signature (different byte lengths)
|
||
m.validatorClient.EXPECT().DomainData( | ||
gomock.Any(), // ctx | ||
gomock.Any(), // epoch |
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.
Do you know the epoch value? That would be preferred over gomock.Any()
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.
Good point. Using:
ðpb.DomainRequest{Epoch: 0, Domain: params.BeaconConfig().DomainAggregateAndProof[:]},
Part of #5556
Validator forgot to sign over signing root object and included the signing root as the signature