From 76fed607e868c7d634c773b8612ea0ee2f2a2cf5 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Wed, 11 Sep 2024 12:39:03 +0900 Subject: [PATCH] rename `aes_key` to `source_aes_key` in confidential burn --- token/confidential-transfer/proof-generation/src/burn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/token/confidential-transfer/proof-generation/src/burn.rs b/token/confidential-transfer/proof-generation/src/burn.rs index 872d7c4cd41..9b927384ac8 100644 --- a/token/confidential-transfer/proof-generation/src/burn.rs +++ b/token/confidential-transfer/proof-generation/src/burn.rs @@ -34,7 +34,7 @@ pub fn burn_split_proof_data( current_decryptable_available_balance: &AeCiphertext, burn_amount: u64, source_elgamal_keypair: &ElGamalKeypair, - aes_key: &AeKey, + source_aes_key: &AeKey, auditor_elgamal_pubkey: &ElGamalPubkey, supply_elgamal_pubkey: &ElGamalPubkey, ) -> Result { @@ -59,7 +59,7 @@ pub fn burn_split_proof_data( // decrypt the current available balance at the source let current_decrypted_available_balance = current_decryptable_available_balance - .decrypt(aes_key) + .decrypt(source_aes_key) .ok_or(TokenProofGenerationError::IllegalAmountBitLength)?; // compute the remaining balance ciphertext