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

Commit 76fed60

Browse files
committed
rename aes_key to source_aes_key in confidential burn
1 parent f8ce0df commit 76fed60

File tree

1 file changed

+2
-2
lines changed
  • token/confidential-transfer/proof-generation/src

1 file changed

+2
-2
lines changed

Diff for: token/confidential-transfer/proof-generation/src/burn.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn burn_split_proof_data(
3434
current_decryptable_available_balance: &AeCiphertext,
3535
burn_amount: u64,
3636
source_elgamal_keypair: &ElGamalKeypair,
37-
aes_key: &AeKey,
37+
source_aes_key: &AeKey,
3838
auditor_elgamal_pubkey: &ElGamalPubkey,
3939
supply_elgamal_pubkey: &ElGamalPubkey,
4040
) -> Result<BurnProofData, TokenProofGenerationError> {
@@ -59,7 +59,7 @@ pub fn burn_split_proof_data(
5959

6060
// decrypt the current available balance at the source
6161
let current_decrypted_available_balance = current_decryptable_available_balance
62-
.decrypt(aes_key)
62+
.decrypt(source_aes_key)
6363
.ok_or(TokenProofGenerationError::IllegalAmountBitLength)?;
6464

6565
// compute the remaining balance ciphertext

0 commit comments

Comments
 (0)