]> git.bitcoin.ninja Git - rust-lightning/commit
Authenticate InvoiceRequest using OfferContext
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 2 Jul 2024 21:55:59 +0000 (16:55 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:03 +0000 (11:34 -0500)
commit35b75fd1fdae40e0d2316da6ddcc725d35c60c50
tree98593fb3bc2305fb4edcc24ae34b0e359d3220bb
parent6a546189e4cc06d59c456d15d1d1fa63e855757d
Authenticate InvoiceRequest using OfferContext

When an InvoiceRequest is handled with an OfferContext, use the
containing nonce to verify that it is for a valid Offer. Otherwise, fall
back to using Offer::metadata, which also contains the nonce. The latter
is useful for supporting offers without blinded paths or those created
prior to including an OffersContext in their blinded paths.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice_request.rs