Skip to content

Commit 76c9fda

Browse files
committed
Rename construct_keys_callback functions
1 parent b4073b0 commit 76c9fda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lightning/src/blinded_path/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ macro_rules! build_keys_helper {
8888
}}
8989

9090
#[inline]
91-
pub(crate) fn construct_keys_callback<'a, T, I, F>(
91+
pub(crate) fn construct_keys_for_onion_message<'a, T, I, F>(
9292
secp_ctx: &Secp256k1<T>, unblinded_path: I, destination: Destination, session_priv: &SecretKey,
9393
mut callback: F,
9494
) -> Result<(), secp256k1::Error>
@@ -116,7 +116,7 @@ where
116116
}
117117

118118
#[inline]
119-
pub(super) fn construct_keys_callback_for_blinded_path<'a, T, I, F, H>(
119+
pub(super) fn construct_keys_for_blinded_path<'a, T, I, F, H>(
120120
secp_ctx: &Secp256k1<T>, unblinded_path: I, session_priv: &SecretKey, mut callback: F,
121121
) -> Result<(), secp256k1::Error>
122122
where
@@ -153,7 +153,7 @@ where
153153
W: Writeable
154154
{
155155
let mut blinded_hops = Vec::with_capacity(unblinded_path.size_hint().0);
156-
construct_keys_callback_for_blinded_path(
156+
construct_keys_for_blinded_path(
157157
secp_ctx, unblinded_path.map(|(pubkey, tlvs)| PublicKeyWithTlvs { pubkey, tlvs }), session_priv,
158158
|blinded_node_id, _, _, encrypted_payload_rho, unblinded_hop_data, _| {
159159
blinded_hops.push(BlindedHop {

lightning/src/onion_message/messenger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ fn packet_payloads_and_keys<T: OnionMessageContents, S: secp256k1::Signing + sec
18091809
let mut blinded_path_idx = 0;
18101810
let mut prev_control_tlvs_ss = None;
18111811
let mut final_control_tlvs = None;
1812-
utils::construct_keys_callback(
1812+
utils::construct_keys_for_onion_message(
18131813
secp_ctx, unblinded_path.into_iter(), destination, session_priv,
18141814
|_, onion_packet_ss, ephemeral_pubkey, control_tlvs_ss, unblinded_pk_opt, enc_payload_opt| {
18151815
if num_unblinded_hops != 0 && unblinded_path_idx < num_unblinded_hops {

0 commit comments

Comments
 (0)