]> git.bitcoin.ninja Git - rust-lightning/commit
Add OffersContext::InvoiceRequest
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 3 Jul 2024 18:47:07 +0000 (13:47 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:03 +0000 (11:34 -0500)
commit6a546189e4cc06d59c456d15d1d1fa63e855757d
treec3a9784aa46d5d80f002322afab3ba3ba4ea83ab
parenta5145e4360f391427db7f95064de3af910064d4a
Add OffersContext::InvoiceRequest

To authenticate that an InvoiceRequest is for a valid Offer, include the
nonce from the Offer::metadata in the Offer::paths. This can be used to
prevent de-anonymization attacks where an attacker sends requests using
self-constructed paths to nodes near the Offer::paths' introduction
nodes.
lightning/src/blinded_path/message.rs
lightning/src/ln/channelmanager.rs
lightning/src/offers/nonce.rs