Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 6b073ce

Browse files
committed
remove decryptable ciphertext from mint burn proof generation
1 parent e97bd22 commit 6b073ce

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

token/confidential-transfer/proof-generation/src/mint.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use {
55
},
66
solana_zk_sdk::{
77
encryption::{
8-
auth_encryption::{AeCiphertext, AeKey},
98
elgamal::{ElGamalCiphertext, ElGamalKeypair, ElGamalPubkey},
109
pedersen::Pedersen,
1110
},
@@ -28,15 +27,13 @@ pub struct MintProofData {
2827
pub ciphertext_validity_proof_data_with_ciphertext:
2928
CiphertextValidityProofWithAuditorCiphertext,
3029
pub range_proof_data: BatchedRangeProofU128Data,
31-
pub new_decryptable_supply: AeCiphertext,
3230
}
3331

3432
pub fn mint_split_proof_data(
3533
current_supply_ciphertext: &ElGamalCiphertext,
3634
mint_amount: u64,
3735
current_supply: u64,
3836
supply_elgamal_keypair: &ElGamalKeypair,
39-
supply_aes_key: &AeKey,
4037
destination_elgamal_pubkey: &ElGamalPubkey,
4138
auditor_elgamal_pubkey: Option<&ElGamalPubkey>,
4239
) -> Result<MintProofData, TokenProofGenerationError> {
@@ -161,6 +158,5 @@ pub fn mint_split_proof_data(
161158
equality_proof_data,
162159
ciphertext_validity_proof_data_with_ciphertext,
163160
range_proof_data,
164-
new_decryptable_supply: supply_aes_key.encrypt(new_supply),
165161
})
166162
}

token/confidential-transfer/proof-tests/tests/proof_test.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,21 +222,18 @@ fn test_mint_validity(mint_amount: u64, supply: u64) {
222222
let auditor_pubkey = auditor_keypair.pubkey();
223223

224224
let supply_keypair = ElGamalKeypair::new_rand();
225-
let supply_aes_key = AeKey::new_rand();
226225

227226
let supply_ciphertext = supply_keypair.pubkey().encrypt(supply);
228227

229228
let MintProofData {
230229
equality_proof_data,
231230
ciphertext_validity_proof_data_with_ciphertext,
232231
range_proof_data,
233-
new_decryptable_supply: _,
234232
} = mint_split_proof_data(
235233
&supply_ciphertext,
236234
mint_amount,
237235
supply,
238236
&supply_keypair,
239-
&supply_aes_key,
240237
destination_pubkey,
241238
Some(auditor_pubkey),
242239
)

0 commit comments

Comments
 (0)