From: Valentine Wallace Date: Tue, 1 Aug 2023 18:55:27 +0000 (-0700) Subject: Blinded paths: rename encrypted_tlvs_ss to *_rho for precision X-Git-Tag: v0.0.117-alpha1~45^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0ddd3cb684d32ac20718701bcab112c37b85ee62;p=rust-lightning 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. --- 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 }