-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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-token-sdk] Refactor ciphertext validity sigma proof and rename ValidityProof
to GroupedCiphertextValidityProof
#32040
[zk-token-sdk] Refactor ciphertext validity sigma proof and rename ValidityProof
to GroupedCiphertextValidityProof
#32040
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32040 +/- ##
=========================================
- Coverage 81.9% 81.9% -0.1%
=========================================
Files 764 765 +1
Lines 208095 208095
=========================================
- Hits 170500 170496 -4
- Misses 37595 37599 +4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some doc suggestions
zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs
Outdated
Show resolved
Hide resolved
/// Append a domain separator for validity proof. | ||
fn validity_proof_domain_sep(&mut self); | ||
/// Append a domain separator for grouped ciphertext validity proof. | ||
fn grouped_ciphertext_validity_proof_domain_sep(&mut self); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to spell out separator
, in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, sounds good! Will do!
zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs
Outdated
Show resolved
Hide resolved
…ity_proof.rs Co-authored-by: Tyera <[email protected]>
…f.rs Co-authored-by: Tyera <[email protected]>
…alidityProof` to `GroupedCiphertextValidityProof` (#32040) * rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof` * rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof` * refactor `validity_proof` module into separate modules * update test names * update `aggregated` variable names * update transcript function names * Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Reword constructor docs --------- Co-authored-by: Tyera <[email protected]> (cherry picked from commit 84e28c2)
…alidityProof` to `GroupedCiphertextValidityProof` (solana-labs#32040) * rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof` * rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof` * refactor `validity_proof` module into separate modules * update test names * update `aggregated` variable names * update transcript function names * Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Reword constructor docs --------- Co-authored-by: Tyera <[email protected]>
…alidityProof` to `GroupedCiphertextValidityProof` (solana-labs#32040) * rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof` * rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof` * refactor `validity_proof` module into separate modules * update test names * update `aggregated` variable names * update transcript function names * Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Reword constructor docs --------- Co-authored-by: Tyera <[email protected]>
…alidityProof` to `GroupedCiphertextValidityProof` (solana-labs#32040) * rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof` * rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof` * refactor `validity_proof` module into separate modules * update test names * update `aggregated` variable names * update transcript function names * Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Reword constructor docs --------- Co-authored-by: Tyera <[email protected]>
…alidityProof` to `GroupedCiphertextValidityProof` (solana-labs#32040) * rename `CiphertextValidityProof` to `GroupedCiphertext2HandlesValidityProof` * rename `AggregatedValidityProof` to `BatchedGroupedCiphertext2HandlesValidityProof` * refactor `validity_proof` module into separate modules * update test names * update `aggregated` variable names * update transcript function names * Update zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Update zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof.rs Co-authored-by: Tyera <[email protected]> * Reword constructor docs --------- Co-authored-by: Tyera <[email protected]>
Problem
The instructions
VerifyGroupedCiphertext2HandlesValidity
andVerifyBatchedGroupedCiphertext2HandlesValidity
have been added to the proof program (#31816). The actual sigma proofs that are used as proof data for these instructions are namedValidityProof
andAggregatedValidityProof
, which doesn't quite match with the proof program instructions.Summary of Changes
ValidityProof
toGroupedCiphertext2HandlesValidityProof
AggregatedValidityProof
toBatchedGroupedCiphertext2HandlesValidityProof
Fixes #