diff --git a/token/confidential-transfer/proof-generation/src/mint.rs b/token/confidential-transfer/proof-generation/src/mint.rs index a670a26ee27..8e03e6d6c1a 100644 --- a/token/confidential-transfer/proof-generation/src/mint.rs +++ b/token/confidential-transfer/proof-generation/src/mint.rs @@ -5,7 +5,6 @@ use { }, solana_zk_sdk::{ encryption::{ - auth_encryption::{AeCiphertext, AeKey}, elgamal::{ElGamalCiphertext, ElGamalKeypair, ElGamalPubkey}, pedersen::Pedersen, }, @@ -28,7 +27,6 @@ pub struct MintProofData { pub ciphertext_validity_proof_data_with_ciphertext: CiphertextValidityProofWithAuditorCiphertext, pub range_proof_data: BatchedRangeProofU128Data, - pub new_decryptable_supply: AeCiphertext, } pub fn mint_split_proof_data( @@ -36,7 +34,6 @@ pub fn mint_split_proof_data( mint_amount: u64, current_supply: u64, supply_elgamal_keypair: &ElGamalKeypair, - supply_aes_key: &AeKey, destination_elgamal_pubkey: &ElGamalPubkey, auditor_elgamal_pubkey: Option<&ElGamalPubkey>, ) -> Result { @@ -161,6 +158,5 @@ pub fn mint_split_proof_data( equality_proof_data, ciphertext_validity_proof_data_with_ciphertext, range_proof_data, - new_decryptable_supply: supply_aes_key.encrypt(new_supply), }) } diff --git a/token/confidential-transfer/proof-tests/tests/proof_test.rs b/token/confidential-transfer/proof-tests/tests/proof_test.rs index 9bcbfa25951..b9444cd40e4 100644 --- a/token/confidential-transfer/proof-tests/tests/proof_test.rs +++ b/token/confidential-transfer/proof-tests/tests/proof_test.rs @@ -222,7 +222,6 @@ fn test_mint_validity(mint_amount: u64, supply: u64) { let auditor_pubkey = auditor_keypair.pubkey(); let supply_keypair = ElGamalKeypair::new_rand(); - let supply_aes_key = AeKey::new_rand(); let supply_ciphertext = supply_keypair.pubkey().encrypt(supply); @@ -230,13 +229,11 @@ fn test_mint_validity(mint_amount: u64, supply: u64) { equality_proof_data, ciphertext_validity_proof_data_with_ciphertext, range_proof_data, - new_decryptable_supply: _, } = mint_split_proof_data( &supply_ciphertext, mint_amount, supply, &supply_keypair, - &supply_aes_key, destination_pubkey, Some(auditor_pubkey), )