Crate fedimint_ln_client

Source

Modules§

api
db
incoming
Incoming State Machine
pay
receive

Structs§

LightningClientContext
LightningClientInit
LightningClientModule
Client side lightning module
LightningOperationMeta
LightningOperationMetaPay
MockGatewayConnection
OutgoingLightningPayment
PayInvoiceResponse
RealGatewayConnection

Enums§

InternalPayState
The high-level state of an pay operation internal to the federation, started with LightningClientModule::pay_bolt11_invoice.
LightningChildKeys
LightningClientStateMachines
LightningOperationMetaVariant
LnPayState
The high-level state of a pay operation over lightning, started with LightningClientModule::pay_bolt11_invoice.
LnReceiveState
The high-level state of a reissue operation started with LightningClientModule::create_bolt11_invoice.
PayBolt11InvoiceError
PayType
ReceivingKey
Where to receive the payment to, either to ourselves or to another user

Traits§

GatewayConnection

Functions§

create_incoming_contract_output
get_invoice
Get LN invoice with given settings
tweak_user_key
Tweak a user key with an index, this is used to generate a new key for each invoice. This is done to not be able to link invoices to the same user.