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

check number of commitments in sign() #480

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

conradoplg
Copy link
Contributor

Closes #455

Not fully sure if it's worth checking this (it's not required, the signature generation would fail anyway), but it works as a second layer of validation and it seems useful for users to be able to know what is the min_signers value by getting it from the KeyPackage. Let me know what you think.

This also adds a test for trying to sign with less than min_signers share (even bypassing this new min_signers value check) which is useful in itself and makes sure we're not interpreting thresholds wrong.

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Patch coverage: 90.62% and project coverage change: +0.33% 🎉

Comparison is base (f3eb868) 77.48% compared to head (856557a) 77.82%.
Report is 3 commits behind head on main.

❗ Current head 856557a differs from pull request most recent head fa7f652. Consider uploading reports for the commit fa7f652 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
+ Coverage   77.48%   77.82%   +0.33%     
==========================================
  Files          30       30              
  Lines        2754     2787      +33     
==========================================
+ Hits         2134     2169      +35     
+ Misses        620      618       -2     
Files Changed Coverage Δ
frost-core/src/error.rs 84.61% <ø> (ø)
frost-ed25519/src/lib.rs 64.06% <ø> (ø)
frost-ed448/src/lib.rs 64.06% <ø> (ø)
frost-p256/src/lib.rs 68.27% <ø> (ø)
frost-ristretto255/src/lib.rs 64.28% <0.00%> (ø)
frost-secp256k1/src/lib.rs 68.05% <ø> (ø)
frost-core/src/frost/keys/dkg.rs 88.49% <60.00%> (-0.58%) ⬇️
frost-core/src/frost/keys.rs 92.64% <100.00%> (+0.33%) ⬆️
frost-core/src/frost/round2.rs 94.62% <100.00%> (+3.71%) ⬆️
frost-rerandomized/src/lib.rs 88.99% <100.00%> (+0.10%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@conradoplg
Copy link
Contributor Author

Solved conflicts

Copy link
Contributor

@natalieesk natalieesk left a comment

Choose a reason for hiding this comment

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

Looks good. Just one thing about making a comment clearer.

natalieesk
natalieesk previously approved these changes Sep 5, 2023
Copy link
Contributor

@natalieesk natalieesk left a comment

Choose a reason for hiding this comment

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

Looks good

mergify bot added a commit that referenced this pull request Sep 6, 2023
@mergify mergify bot merged commit 4ee0d32 into main Sep 6, 2023
@mergify mergify bot deleted the check-number-commitments branch September 6, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NCC-E008263-AW3] Insufficient Participant Commitment List Checks
2 participants