Function peel_onion_message
pub fn peel_onion_message<NS, L, CMH>(
msg: &OnionMessage,
secp_ctx: &Secp256k1<All>,
node_signer: NS,
logger: L,
custom_handler: CMH,
) -> Result<PeeledOnion<<<CMH as Deref>::Target as CustomOnionMessageHandler>::CustomMessage>, ()>
Expand description
Decode one layer of an incoming OnionMessage
.
Returns either the next layer of the onion for forwarding or the decrypted content for the receiver.