Useful for LDK users that are using the onion messages module, like LNDK.
utils::construct_blinded_hops(secp_ctx, pks, tlvs, session_priv)
}
-// Advance the blinded onion message path by one hop, so make the second hop into the new
-// introduction node.
-//
-// Will only modify `path` when returning `Ok`.
-pub(crate) fn advance_path_by_one<NS: Deref, NL: Deref, T>(
+/// Advance the blinded onion message path by one hop, so make the second hop into the new
+/// introduction node.
+///
+/// Will only modify `path` when returning `Ok`.
+pub fn advance_path_by_one<NS: Deref, NL: Deref, T>(
path: &mut BlindedMessagePath, node_signer: &NS, node_id_lookup: &NL, secp_ctx: &Secp256k1<T>
) -> Result<(), ()>
where
utils::construct_blinded_hops(secp_ctx, pks, tlvs, session_priv)
}
-// Advance the blinded onion payment path by one hop, so make the second hop into the new
-// introduction node.
-//
-// Will only modify `path` when returning `Ok`.
-pub(crate) fn advance_path_by_one<NS: Deref, NL: Deref, T>(
+/// Advance the blinded onion payment path by one hop, so make the second hop into the new
+/// introduction node.
+///
+/// Will only modify `path` when returning `Ok`.
+pub fn advance_path_by_one<NS: Deref, NL: Deref, T>(
path: &mut BlindedPaymentPath, node_signer: &NS, node_id_lookup: &NL, secp_ctx: &Secp256k1<T>
) -> Result<(), ()>
where