Module lightning

Source

Structs§

Bolt11Invoice
Represents a syntactically and semantically correct lightning BOLT11 invoice.
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§

CheckAmountError
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.
PAYMENT_HASH_SIZE
PREIMAGE_SIZE

Traits§

Bolt11InvoiceExt
Extension trait for the Bolt11Invoice type
Bolt12InvoiceExt
Extension trait for the Bolt12Invoice type