Skip to content

Commit

Permalink
[zk-sdk] Change FeeSigmaProof to PercentageWithCapProof (#1084)
Browse files Browse the repository at this point in the history
* rename submodule `fee` with `percentage_with_cap`

* rename `FeeSigmaProof` type to `PercentageWithCapProof`

* rename `FeeMaxProof` and `FeeEqualityProof` with `PercentageMaxProof` and `PercentageEqualityProof`

* remove `fee` from the variable names

* remove `fee` from function names

* rename `FeeSigmaProofVerificationError` to `PercentageWithCapVerificationError`

* flatten out function arguments

* update docs/comments

* update test names

* clippy
  • Loading branch information
samkim-crypto authored Apr 30, 2024
1 parent 2e828d9 commit 5dd8519
Show file tree
Hide file tree
Showing 4 changed files with 707 additions and 660 deletions.
6 changes: 3 additions & 3 deletions zk-sdk/src/sigma_proofs/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ pub struct ZeroCiphertextProofVerificationError(#[from] pub(crate) SigmaProofVer
impl_from_transcript_error!(ZeroCiphertextProofVerificationError);

#[derive(Error, Clone, Debug, Eq, PartialEq)]
#[error("fee sigma proof verification failed: {0}")]
pub struct FeeSigmaProofVerificationError(#[from] pub(crate) SigmaProofVerificationError);
impl_from_transcript_error!(FeeSigmaProofVerificationError);
#[error("percentage-with-cap proof verification failed: {0}")]
pub struct PercentageWithCapProofVerificationError(#[from] pub(crate) SigmaProofVerificationError);
impl_from_transcript_error!(PercentageWithCapProofVerificationError);

#[derive(Error, Clone, Debug, Eq, PartialEq)]
#[error("public key validity proof verification failed: {0}")]
Expand Down
Loading

0 comments on commit 5dd8519

Please sign in to comment.