Module onion_payment

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§

InboundHTLCErr
Invalid inbound onion payment.

Functions§

peel_payment_onion
Peel one layer off an incoming onion, returning a PendingHTLCInfo that contains information about the intended next-hop for the HTLC.