From 0ddd3cb684d32ac20718701bcab112c37b85ee62 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Tue, 1 Aug 2023 11:55:27 -0700 Subject: [PATCH] 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. --- lightning/src/blinded_path/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/blinded_path/utils.rs b/lightning/src/blinded_path/utils.rs index e1feed97a..c62b4e6c2 100644 --- a/lightning/src/blinded_path/utils.rs +++ b/lightning/src/blinded_path/utils.rs @@ -128,9 +128,9 @@ where } /// Encrypt TLV payload to be used as a [`crate::blinded_path::BlindedHop::encrypted_payload`]. -fn encrypt_payload(payload: P, encrypted_tlvs_ss: [u8; 32]) -> Vec { +fn encrypt_payload(payload: P, encrypted_tlvs_rho: [u8; 32]) -> Vec { 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 } -- 2.39.5