Module async_payments

Source
Expand description

Message handling for async payments.

Structs§

HeldHtlcAvailable
An HTLC destined for the recipient of this message is being held upstream. The reply path accompanying this onion message should be used to send a ReleaseHeldHtlc response, which will cause the upstream HTLC to be released.
OfferPaths
BlindedMessagePaths to be included in an async recipient’s Offer::paths, sent by a static invoice server in response to an OfferPathsRequest.
OfferPathsRequest
A request from an async recipient for BlindedMessagePaths from a static invoice server. These paths will be used in the async recipient’s Offer::paths, so payers can request StaticInvoices from the static invoice server.
ReleaseHeldHtlc
Releases the HTLC corresponding to an inbound HeldHtlcAvailable message.
ServeStaticInvoice
A request from an async recipient to a static invoice server that a StaticInvoice be provided in response to InvoiceRequests from payers.
StaticInvoicePersisted
Confirmation from a static invoice server that a StaticInvoice was persisted and the corresponding Offer is ready to be used to receive async payments. Sent to an async recipient in response to a ServeStaticInvoice message.

Enums§

AsyncPaymentsMessage
Possible async payment messages sent and received via an OnionMessage.

Traits§

AsyncPaymentsMessageHandler
A handler for an OnionMessage containing an async payments message as its payload.