]> git.bitcoin.ninja Git - rust-lightning/commit
Utility for paying for an Offer
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 14 Sep 2023 18:32:51 +0000 (13:32 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Oct 2023 14:49:56 +0000 (09:49 -0500)
commitffe9ae285d0c0399a11b6ee4ddb81c1588ab06f2
tree40d499f3db49b221cf947c3e1ca77263df37821f
parent34bdf224891dfc42b50e09e29f40e0633b2aba25
Utility for paying for an Offer

Add a utility to ChannelManager for sending an InvoiceRequest for an
Offer such that derived keys are used for the payer id. This allows for
stateless verification of any Invoice messages before it is paid.

Also tracks future payments using the given PaymentId such that the
corresponding Invoice is paid only once.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice_request.rs