From 76c9fdad587398b7b020aad2f364c02e8334d735 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 16 Aug 2024 10:19:07 -0500 Subject: [PATCH] Rename construct_keys_callback functions --- lightning/src/blinded_path/utils.rs | 6 +++--- lightning/src/onion_message/messenger.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lightning/src/blinded_path/utils.rs b/lightning/src/blinded_path/utils.rs index 8de36c1c8..7472f8f39 100644 --- a/lightning/src/blinded_path/utils.rs +++ b/lightning/src/blinded_path/utils.rs @@ -88,7 +88,7 @@ macro_rules! build_keys_helper { }} #[inline] -pub(crate) fn construct_keys_callback<'a, T, I, F>( +pub(crate) fn construct_keys_for_onion_message<'a, T, I, F>( secp_ctx: &Secp256k1, unblinded_path: I, destination: Destination, session_priv: &SecretKey, mut callback: F, ) -> Result<(), secp256k1::Error> @@ -116,7 +116,7 @@ where } #[inline] -pub(super) fn construct_keys_callback_for_blinded_path<'a, T, I, F, H>( +pub(super) fn construct_keys_for_blinded_path<'a, T, I, F, H>( secp_ctx: &Secp256k1, unblinded_path: I, session_priv: &SecretKey, mut callback: F, ) -> Result<(), secp256k1::Error> where @@ -153,7 +153,7 @@ where W: Writeable { let mut blinded_hops = Vec::with_capacity(unblinded_path.size_hint().0); - construct_keys_callback_for_blinded_path( + construct_keys_for_blinded_path( secp_ctx, unblinded_path.map(|(pubkey, tlvs)| PublicKeyWithTlvs { pubkey, tlvs }), session_priv, |blinded_node_id, _, _, encrypted_payload_rho, unblinded_hop_data, _| { blinded_hops.push(BlindedHop { diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 11a2d9f94..58c7bf5e0 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -1809,7 +1809,7 @@ fn packet_payloads_and_keys