From 6d257f9e48b9975ba08476d07858bab2a48caab3 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Thu, 11 Apr 2024 17:02:28 +0900 Subject: [PATCH] update submodule name from `fee_sigma_proof` to `percentage_with_cap_proof` --- zk-token-sdk/src/instruction/fee_sigma.rs | 2 +- zk-token-sdk/src/instruction/transfer/with_fee.rs | 2 +- zk-token-sdk/src/sigma_proofs/mod.rs | 2 +- .../{fee_proof.rs => percentage_with_cap_proof.rs} | 0 zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) rename zk-token-sdk/src/sigma_proofs/{fee_proof.rs => percentage_with_cap_proof.rs} (100%) diff --git a/zk-token-sdk/src/instruction/fee_sigma.rs b/zk-token-sdk/src/instruction/fee_sigma.rs index f72afd54ff8bc3..753405d9fdd33e 100644 --- a/zk-token-sdk/src/instruction/fee_sigma.rs +++ b/zk-token-sdk/src/instruction/fee_sigma.rs @@ -13,7 +13,7 @@ use { crate::{ encryption::pedersen::{PedersenCommitment, PedersenOpening}, errors::{ProofGenerationError, ProofVerificationError}, - sigma_proofs::fee_proof::PercentageWithCapProof, + sigma_proofs::percentage_with_cap_proof::PercentageWithCapProof, transcript::TranscriptProtocol, }, merlin::Transcript, diff --git a/zk-token-sdk/src/instruction/transfer/with_fee.rs b/zk-token-sdk/src/instruction/transfer/with_fee.rs index 5b5c0c1d9ab79c..0805d58780311f 100644 --- a/zk-token-sdk/src/instruction/transfer/with_fee.rs +++ b/zk-token-sdk/src/instruction/transfer/with_fee.rs @@ -19,7 +19,7 @@ use { sigma_proofs::{ batched_grouped_ciphertext_validity_proof::BatchedGroupedCiphertext2HandlesValidityProof, ciphertext_commitment_equality_proof::CiphertextCommitmentEqualityProof, - fee_proof::PercentageWithCapProof, + percentage_with_cap_proof::PercentageWithCapProof, }, transcript::TranscriptProtocol, }, diff --git a/zk-token-sdk/src/sigma_proofs/mod.rs b/zk-token-sdk/src/sigma_proofs/mod.rs index ddaf712f7c1624..2ac98ea8b8f0ba 100644 --- a/zk-token-sdk/src/sigma_proofs/mod.rs +++ b/zk-token-sdk/src/sigma_proofs/mod.rs @@ -9,8 +9,8 @@ pub mod batched_grouped_ciphertext_validity_proof; pub mod ciphertext_ciphertext_equality_proof; pub mod ciphertext_commitment_equality_proof; pub mod errors; -pub mod fee_proof; pub mod grouped_ciphertext_validity_proof; +pub mod percentage_with_cap_proof; pub mod pubkey_proof; pub mod zero_balance_proof; diff --git a/zk-token-sdk/src/sigma_proofs/fee_proof.rs b/zk-token-sdk/src/sigma_proofs/percentage_with_cap_proof.rs similarity index 100% rename from zk-token-sdk/src/sigma_proofs/fee_proof.rs rename to zk-token-sdk/src/sigma_proofs/percentage_with_cap_proof.rs diff --git a/zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs b/zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs index 8b1327378f0477..d6c91e40e00f53 100644 --- a/zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs +++ b/zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs @@ -5,8 +5,9 @@ use crate::sigma_proofs::{ batched_grouped_ciphertext_validity_proof::BatchedGroupedCiphertext2HandlesValidityProof as DecodedBatchedGroupedCiphertext2HandlesValidityProof, ciphertext_ciphertext_equality_proof::CiphertextCiphertextEqualityProof as DecodedCiphertextCiphertextEqualityProof, ciphertext_commitment_equality_proof::CiphertextCommitmentEqualityProof as DecodedCiphertextCommitmentEqualityProof, - errors::*, fee_proof::PercentageWithCapProof as DecodedPercentageWithCapProof, + errors::*, grouped_ciphertext_validity_proof::GroupedCiphertext2HandlesValidityProof as DecodedGroupedCiphertext2HandlesValidityProof, + percentage_with_cap_proof::PercentageWithCapProof as DecodedPercentageWithCapProof, pubkey_proof::PubkeyValidityProof as DecodedPubkeyValidityProof, zero_balance_proof::ZeroBalanceProof as DecodedZeroBalanceProof, };