Skip to content

Commit 4d20a96

Browse files
committed
f - use offers_encryption_key
1 parent c5fd226 commit 4d20a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/inbound_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl ExpandedKey {
9090
/// Encrypts or decrypts the given `bytes`. Used for data included in an offer message's
9191
/// metadata (e.g., payment id).
9292
pub(crate) fn crypt_for_offer(&self, mut bytes: [u8; 32], iv_bytes: &[u8; IV_LEN]) -> [u8; 32] {
93-
let chacha_block = ChaCha20::get_single_block(&self.offers_base_key, iv_bytes);
93+
let chacha_block = ChaCha20::get_single_block(&self.offers_encryption_key, iv_bytes);
9494
for i in 0..bytes.len() {
9595
bytes[i] = chacha_block[i] ^ bytes[i];
9696
}

0 commit comments

Comments
 (0)