Modulesยง
Structsยง
- Create
Bolt11 ๐Invoice ForUser Tweaked Request - Create
Bolt11 ๐Invoice Request - GetGateway
Request ๐ - Lightning
Client Context - Lightning
Client Init - Lightning
Client Module - Client side lightning module
- Lightning
Operation Meta - Lightning
Operation Meta Pay - Mock
Gateway Connection - Outgoing
Lightning Payment - PayBolt11
Invoice ๐Request - PayInvoice
Response - Real
Gateway Connection - Scan
Receive ๐ForUser Tweaked Request - Subscribe
LnClaim ๐Request - Subscribe
LnPay ๐Request - Subscribe
LnReceive ๐Request
Enumsยง
- Internal
PayState - The high-level state of an pay operation internal to the federation,
started with
LightningClientModule::pay_bolt11_invoice
. - Lightning
Child Keys - Lightning
Client State Machines - Lightning
Operation Meta Variant - LnPay
State - The high-level state of a pay operation over lightning,
started with
LightningClientModule::pay_bolt11_invoice
. - LnReceive
State - The high-level state of a reissue operation started with
LightningClientModule::create_bolt11_invoice
. - PayBolt11
Invoice Error - PayType
- Receiving
Key - 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ยง
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.