Crate fedimint_ln_client

Source

Modulesยง

api
cli
db
incoming
Incoming State Machine
pay
receive

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 ๐Ÿ”’
ln_operation
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.