Module lightning_types::payment

source ·
Expand description

Types which describe payments in lightning.

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.