Module lightning

Module lightning 

Source

Structs§

Bolt12Invoice
A Bolt12Invoice is a payment request, typically corresponding to an Offer or a Refund.
CheckSignatureError
InvoiceParseError
Offer
An Offer is a potentially long-lived proposal for payment of a good or service.
PaymentHash
The hash of a Preimage, used to identify HTLC-based payments.
Preimage
A 32-byte secret preimage used for HTLC-based payments.

Enums§

Invoice
Enum to represent either a lightning Bolt11Invoice or a Bolt12Invoice.
OfferAmount
The minimum amount required for an item in an Offer, denominated in either bitcoin or another currency.
PaymentStatus

Constants§

HTLC_MIN_FEE
The minimum fee we consider for an HTLC transaction.

Traits§

Bolt12InvoiceExt

Functions§

server_htlc_receive_taproot
Construct taproot spending information for a VTXO that enables incoming Lightning payments. This relates to the crate::VtxoPolicy::ServerHtlcRecv policy.
server_htlc_send_taproot
Construct taproot spending information for a VTXO that enables outgoing Lightning payments. This relates to the crate::VtxoPolicy::ServerHtlcSend policy.