OffersMessageHandler impl for ChannelManager
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 1 Sep 2023 19:04:27 +0000 (14:04 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Oct 2023 14:49:57 +0000 (09:49 -0500)
commitdebc20cc3e1bb8ce8625e67294d0c3036314fdcb
tree072bc0319084c957a61f40bfc4ecbba9dffb26b8
parentb191fd48d502a3476ac0063c3d694092505198f4
OffersMessageHandler impl for ChannelManager

Define the BOLT 12 message flow in ChannelManager's
OffersMessageHandler implementation.
- An invoice_request message results in responding with an invoice
  message if it can be verified that the request is for a valid offer.
- An invoice is paid if it can be verified to have originated from a
  sent invoice_request or a refund.
- An invoice_error is sent in some failure cases.
- Initial messages enqueued for sending are released to OnionMessenger
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_error.rs