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

eth2util/signing: add sync message verify #1216

Merged
merged 1 commit into from
Oct 3, 2022
Merged

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Oct 3, 2022

Adds signature verification for sync committee message.

category: feature
ticket: #1183

@dB2510 dB2510 linked an issue Oct 3, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Base: 53.12% // Head: 53.12% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (2d65510) compared to base (e59359b).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1216      +/-   ##
==========================================
- Coverage   53.12%   53.12%   -0.01%     
==========================================
  Files         133      133              
  Lines       15649    15655       +6     
==========================================
+ Hits         8314     8316       +2     
- Misses       6140     6143       +3     
- Partials     1195     1196       +1     
Impacted Files Coverage Δ
eth2util/signing/signing.go 42.56% <50.00%> (+0.31%) ⬆️
core/dutydb/memory.go 66.38% <0.00%> (-0.85%) ⬇️
core/qbft/qbft.go 81.54% <0.00%> (+0.42%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.


require.NoError(t, signing.VerifyAggregateAndProof(context.Background(), bmock, pubkey, agg))
}

func sign(t *testing.T, data []byte) (*bls_sig.Signature, *bls_sig.PublicKey) {
func TestVerifySyncCommitteeMessage(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make this a table test rather?

Copy link
Contributor Author

@dB2510 dB2510 Oct 3, 2022

Choose a reason for hiding this comment

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

since each test require different signing data and calls different function, i don't think it will add much value converting these tests to table test.

@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Oct 3, 2022
@obol-bulldozer obol-bulldozer bot merged commit 9f32959 into main Oct 3, 2022
@obol-bulldozer obol-bulldozer bot deleted the dhruv/verifymsg branch October 3, 2022 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add verification for SyncCommitteeMessage
2 participants