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-sdk] Change ZeroBalanceProof to ZeroCiphertextProof #1085

Merged
merged 6 commits into from
Apr 29, 2024

Conversation

samkim-crypto
Copy link

@samkim-crypto samkim-crypto commented Apr 27, 2024

Problem

The ZeroBalanceProof certifies that a ciphertext is an encryption of the number zero. It does have applications to private transfers, but the name is unnecessarily specific to this application only. It makes sense to rename the type to something more general as proposed in #671.

Summary of Changes

Rename ZeroBalanceProof to ZeroCiphertextProof.

Fixes #

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 82.2%. Comparing base (e4ec48f) to head (0c9f9b7).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #1085     +/-   ##
=========================================
  Coverage    82.2%    82.2%             
=========================================
  Files         868      880     +12     
  Lines      234388   235584   +1196     
=========================================
+ Hits       192668   193689   +1021     
- Misses      41720    41895    +175     

Copy link

@joncinque joncinque 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! There are also references to "zero-balance" in transcript.rs:

/// Append a domain separator for zero-balance proof.
-- will those get changed in a future PR?

@samkim-crypto
Copy link
Author

Thanks for the review! Yes, I forgot to mention it in the PR description. There are some other things to address relating to transcript, so there will be a follow-up PR addressing those and fixing the zero-balance name there.

@samkim-crypto samkim-crypto merged commit 7fcd8c0 into anza-xyz:master Apr 29, 2024
38 checks passed
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.

3 participants