Module lightning::ln::onion_payment
source · Expand description
Utilities to decode payment onions and do contextless validation of incoming payments.
Primarily features peel_payment_onion
, which allows the decoding of an onion statelessly
and can be used to predict whether we’d accept a payment.
Structs§
- Invalid inbound onion payment.
Functions§
- Peel one layer off an incoming onion, returning a
PendingHTLCInfo
that contains information about the intended next-hop for the HTLC.