breez_sdk_liquid::lightning_125

Module ln

Expand description

Implementations of various parts of the Lightning protocol are in this module.

Note that the re-exports of PaymentHash, PaymentPreimage, and PaymentSecret here are deprecated and will be removed in a future version. Instead, use them via lightning::types::payment.

Modules§

Structs§

  • The payment hash is the hash of the PaymentPreimage which is the value used to lock funds in HTLCs while they transit the lightning network.
  • The payment preimage is the “secret key” which is used to claim the funds of an HTLC on-chain or in a lightning channel.
  • The payment secret is used to authenticate the sender of an HTLC to the recipient and tie multi-part HTLCs together into a single payment.

Constants§

Functions§

  • Build a payment onion, returning the first hop msat and cltv values as well. cur_block_height should be set to the best known block height + 1.