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

Add validation for missing identifier in signing package #452

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

natalieesk
Copy link
Contributor

This closes #442

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.11% 🎉

Comparison is base (9b5d88d) 72.17% compared to head (d1fdfc7) 72.28%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
+ Coverage   72.17%   72.28%   +0.11%     
==========================================
  Files          30       30              
  Lines        2670     2681      +11     
==========================================
+ Hits         1927     1938      +11     
  Misses        743      743              
Files Changed Coverage Δ
frost-core/src/error.rs 84.61% <ø> (ø)
frost-core/src/frost/round2.rs 91.01% <100.00%> (+1.26%) ⬆️

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

Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Some comments but everything else looks great, love the test

frost-core/src/tests/ciphersuite_generic.rs Outdated Show resolved Hide resolved
frost-core/src/frost/round2.rs Outdated Show resolved Hide resolved
conradoplg
conradoplg previously approved these changes Jul 26, 2023
Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Looks great!

Out of curiosity I measured performance and indeed we have a drop as expected, which gets diluted with more signers since it's a fixed amount of additional computation:

FROST Signing ristretto255/Round 2/2
                        time:   [143.11 µs 143.26 µs 143.40 µs]
                        change: [+48.619% +48.846% +49.075%] (p = 0.00 < 0.05)
                        Performance has regressed.
FROST Signing ristretto255/Round 2/7
                        time:   [225.57 µs 225.72 µs 225.88 µs]
                        change: [+25.906% +27.105% +28.724%] (p = 0.00 < 0.05)
                        Performance has regressed.
FROST Signing ristretto255/Round 2/67
                        time:   [1.2433 ms 1.2444 ms 1.2454 ms]
                        change: [+1.1933% +1.6641% +2.0133%] (p = 0.00 < 0.05)
                        Performance has regressed.

I'll create an issue to improve this later. Created #454

frost-core/src/frost/round2.rs Outdated Show resolved Hide resolved
frost-core/src/frost/round2.rs Outdated Show resolved Hide resolved
@conradoplg conradoplg merged commit b3a7927 into main Jul 27, 2023
13 checks passed
@conradoplg conradoplg deleted the signing_package_validation_442 branch July 27, 2023 01:24
@mpguerra mpguerra mentioned this pull request Aug 23, 2023
26 tasks
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-2WM] frost-core: Missing Signing Package Validation May Cause a Panic
3 participants