Skip to content

Commit

Permalink
Blinded paths: rename encrypted_tlvs_ss to *_rho for precision
Browse files Browse the repository at this point in the history
The previous name can be confused for the shared secret that the rho is derived
from.
  • Loading branch information
valentinewallace committed Aug 22, 2023
1 parent e93aa2a commit 55c5b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/blinded_path/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ where
}

/// Encrypt TLV payload to be used as a [`crate::blinded_path::BlindedHop::encrypted_payload`].
fn encrypt_payload<P: Writeable>(payload: P, encrypted_tlvs_ss: [u8; 32]) -> Vec<u8> {
fn encrypt_payload<P: Writeable>(payload: P, encrypted_tlvs_rho: [u8; 32]) -> Vec<u8> {
let mut writer = VecWriter(Vec::new());
let write_adapter = ChaChaPolyWriteAdapter::new(encrypted_tlvs_ss, &payload);
let write_adapter = ChaChaPolyWriteAdapter::new(encrypted_tlvs_rho, &payload);
write_adapter.write(&mut writer).expect("In-memory writes cannot fail");
writer.0
}
Expand Down

0 comments on commit 55c5b3e

Please sign in to comment.