pub fn peel_onion_message<NS: Deref, L: Deref, CMH: Deref>(
msg: &OnionMessage,
secp_ctx: &Secp256k1<All>,
node_signer: NS,
logger: L,
custom_handler: CMH,
) -> Result<PeeledOnion<<CMH::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.