Skip to content
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

Merged
merged 10 commits into from
Apr 24, 2020

Conversation

terencechain
Copy link
Member

Part of #5556

Validator forgot to sign over signing root object and included the signing root as the signature

@codecov
Copy link

codecov bot commented Apr 23, 2020

Codecov Report

Merging #5605 into master will increase coverage by 0.35%.
The diff coverage is 0.00%.

@@            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     

nisdas
nisdas previously requested changes Apr 24, 2020
Copy link
Member

@nisdas nisdas left a 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

@terencechain terencechain marked this pull request as draft April 24, 2020 05:15
@terencechain terencechain marked this pull request as ready for review April 24, 2020 16:16
}
if _, err := bls.SignatureFromBytes(sig); err != nil {
t.Fatal(err)
}
Copy link
Contributor

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?

Copy link
Member Author

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)

0xKiwi
0xKiwi previously approved these changes Apr 24, 2020
@terencechain terencechain dismissed nisdas’s stale review April 24, 2020 16:48

Dismissing outdated review


m.validatorClient.EXPECT().DomainData(
gomock.Any(), // ctx
gomock.Any(), // epoch
Copy link
Member

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()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Using:

		&ethpb.DomainRequest{Epoch: 0, Domain: params.BeaconConfig().DomainAggregateAndProof[:]},

@rauljordan rauljordan merged commit 07f6894 into master Apr 24, 2020
@rauljordan rauljordan deleted the use-right-signature branch April 24, 2020 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants