breez_sdk_liquid::lightning_125::onion_message::messenger

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>, ()>
where NS: Deref, L: Deref, CMH: Deref, <NS as Deref>::Target: NodeSigner, <L as Deref>::Target: Logger, <CMH as Deref>::Target: CustomOnionMessageHandler,
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.