mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Blinded paths: rename encrypted_tlvs_ss to *_rho for precision
The previous name can be confused for the shared secret that the rho is derived from.
This commit is contained in:
parent
76f8cc1cc6
commit
0ddd3cb684
1 changed files with 2 additions and 2 deletions
|
@ -128,9 +128,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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue