Crate fedimint_ln_client

Source

Modules§

api
cli
db
depreacated_variant_hack 🔒
This is a hack to allow us to use the deprecated variant in the database without the serde derived implementation throwing warnings.
incoming
Incoming State Machine
pay
receive
recurring
Implements recurring payment codes (e.g. LNURL, BOLT12)

Structs§

CreateBolt11InvoiceForUserTweakedRequest 🔒
CreateBolt11InvoiceRequest 🔒
GetGatewayRequest 🔒
LightningClientContext
LightningClientInit
LightningClientModule
Client side lightning module
LightningOperationMeta
LightningOperationMetaPay
MockGatewayConnection
OutgoingLightningPayment
PayBolt11InvoiceRequest 🔒
PayInvoiceResponse
RealGatewayConnection
ScanReceiveForUserTweakedRequest 🔒
SubscribeLnClaimRequest 🔒
SubscribeLnPayRequest 🔒
SubscribeLnReceiveRequest 🔒

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

Constants§

DEFAULT_INVOICE_EXPIRY_TIME 🔒
OUTGOING_LN_CONTRACT_TIMELOCK 🔒
Number of blocks until outgoing lightning contracts times out and user client can get refund

Traits§

GatewayConnection

Functions§

create_incoming_contract_output
fetch_and_validate_offer 🔒
get_invoice
Get LN invoice with given settings
invoice_has_internal_payment_markers 🔒
invoice_routes_back_to_federation 🔒
set_payment_result 🔒
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.
tweak_user_secret_key 🔒
Tweak a secret key with an index, this is used to claim an unspent incoming contract.