]> git.bitcoin.ninja Git - rust-lightning/commit
Authenticate Bolt12Invoice using OfferContext
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 2 Jul 2024 22:27:39 +0000 (17:27 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:03 +0000 (11:34 -0500)
commitc2a120eeefa5d875557a8601c38555a472098854
tree09c1081640f0aa6e51b46a2c387a51295276b80a
parentf537abd960d83f39bf4b1a66e76560136d8be199
Authenticate Bolt12Invoice using OfferContext

When a Bolt12Invoice is handled with an OfferContext, use the
containing payment_id to verify that it is for a pending outbound
payment. Only invoices for refunds without any blinded paths can be
verified without an OfferContext.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice.rs