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

ZK proof cleanup #99

Merged
merged 22 commits into from
Jan 20, 2024
Merged

ZK proof cleanup #99

merged 22 commits into from
Jan 20, 2024

Conversation

fjarri
Copy link
Member

@fjarri fjarri commented Jan 18, 2024

  • Include challenges in all ZK proofs. While not strictly necessary, according to the authors of the paper, still adds a little more security and more debug info at the price of slightly larger message sizes. Also we were already doing it for some of the ZK proofs anyway.
  • Adjust method visibility (don't use pub(crate) for the methods of a struct that's already pub(crate))
  • Bring some parameter names in sync with the paper
  • Decouple curve scalars from big integers (fixes Extract conversion between Scalar and Uint to the scheme parameters level  #63). Note that it adds some internal-use methods to SchemeParams; these should be hidden as a part of Seal the SchemeParameters trait #74.
  • TODO: add public values and commitments (if the ZK proof uses them) into the hash digest for challenge generation, as prescribed by Fig. 2

A little more security and more debug info at the price of slightly larger message sizes.
Now they are linked only at the SchemeParameters level.
Copy link

vercel bot commented Jan 18, 2024

@fjarri is attempting to deploy a commit to the entropyxyz Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
synedrion 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 0:15am

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 99 lines in your changes are missing coverage. Please review.

Comparison is base (1e8f908) 87.17% compared to head (a851fff) 86.91%.

Files Patch % Lines
synedrion/src/cggmp21/protocols/signing.rs 0.00% 61 Missing ⚠️
synedrion/src/cggmp21/protocols/presigning.rs 67.07% 27 Missing ⚠️
synedrion/src/uint/signed.rs 96.00% 2 Missing ⚠️
synedrion/src/cggmp21/params.rs 97.87% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/aff_g.rs 98.03% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/dec.rs 97.05% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/enc.rs 97.36% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/fac.rs 95.23% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/log_star.rs 97.56% 1 Missing ⚠️
synedrion/src/cggmp21/sigma/mul.rs 96.87% 1 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
- Coverage   87.17%   86.91%   -0.26%     
==========================================
  Files          45       45              
  Lines        7251     7535     +284     
==========================================
+ Hits         6321     6549     +228     
- Misses        930      986      +56     

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

@fjarri fjarri marked this pull request as ready for review January 18, 2024 01:31
@fjarri fjarri merged commit afe35e9 into entropyxyz:master Jan 20, 2024
4 of 6 checks passed
@fjarri fjarri deleted the proof-cleanup branch January 20, 2024 20:01
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.

Extract conversion between Scalar and Uint to the scheme parameters level
1 participant