@@ -88,7 +88,7 @@ macro_rules! build_keys_helper {
88
88
} }
89
89
90
90
#[ 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 > (
92
92
secp_ctx : & Secp256k1 < T > , unblinded_path : I , destination : Destination , session_priv : & SecretKey ,
93
93
mut callback : F ,
94
94
) -> Result < ( ) , secp256k1:: Error >
@@ -116,7 +116,7 @@ where
116
116
}
117
117
118
118
#[ 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 > (
120
120
secp_ctx : & Secp256k1 < T > , unblinded_path : I , session_priv : & SecretKey , mut callback : F ,
121
121
) -> Result < ( ) , secp256k1:: Error >
122
122
where
@@ -153,7 +153,7 @@ where
153
153
W : Writeable
154
154
{
155
155
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 (
157
157
secp_ctx, unblinded_path. map ( |( pubkey, tlvs) | PublicKeyWithTlvs { pubkey, tlvs } ) , session_priv,
158
158
|blinded_node_id, _, _, encrypted_payload_rho, unblinded_hop_data, _| {
159
159
blinded_hops. push ( BlindedHop {
0 commit comments