Skip to content

Commit

Permalink
rename aes_key to source_aes_key in confidential burn
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Sep 11, 2024
1 parent f8ce0df commit 76fed60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token/confidential-transfer/proof-generation/src/burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BurnProofData, TokenProofGenerationError> {
Expand All @@ -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
Expand Down

0 comments on commit 76fed60

Please sign in to comment.