Skip to main content

Module ldk

Module ldk 

Source

Structs§

GatewayLdkClient
LdkOfferId 🔒
LdkTracingLogger 🔒
Forwards ldk-node’s log records into the gateway’s tracing subscriber.
UserChannelId

Enums§

InboundRegistrationRefusal 🔒
Why an invoice must not be registered for a payment hash on the node.
LdkClientInitError
A failure to create the LDK Lightning node behind a GatewayLdkClient.
PendingPaymentWakeup 🔒
Outcome of attempting to wake a pay() waiter for a terminal payment event.

Functions§

check_inbound_registration 🔒
Decides whether an invoice may be registered for a payment hash the node may already know as one of our outbound payments.
get_esplora_url 🔒
When a port is specified in the Esplora URL, the esplora client inside LDK node cannot connect to the lightning node when there is a trailing slash. The SafeUrl::Display function will always serialize the SafeUrl with a trailing slash, which causes the connection to fail.
get_preimage_and_payment_hash 🔒
Maps LDK’s PaymentKind to an optional preimage and an optional payment hash depending on the type of payment.
htlc_completion_error 🔒
Classifies an ldk-node claim or fail error for the gateway’s completion retry loop.

Type Aliases§

PendingChannelSender 🔒
Sends a channel’s funding outpoint once the channel is pending, or the reason the channel closed before that.