Skip to content

Commit 55c5b3e

Browse files
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.
1 parent e93aa2a commit 55c5b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/blinded_path/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ where
130130
}
131131

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

0 commit comments

Comments
 (0)