]> git.bitcoin.ninja Git - rust-lightning/commit
Add nonce to OffersContext::OutboundPayment
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 12 Jul 2024 21:59:22 +0000 (16:59 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:04 +0000 (11:34 -0500)
commit14634c6ae12897a39e44ac7760b49130a88bd2c9
tree3bd696b5eaf956a1eff360f09407c43162bcc6a7
parent868fee7d2d98d1a5dd971a90b71b6016d3cfca29
Add nonce to OffersContext::OutboundPayment

To authenticate that a Bolt12Invoice is for a valid InvoiceRequest or
Refund, include the nonce from the payer_metadata in the InvoiceRequest
reply path or Refund::paths, respectively. This can be used to prevent
de-anonymization attacks where an attacker sends invoices using
self-constructed paths to nodes near the blinded paths' introduction
nodes.
lightning/src/blinded_path/message.rs
lightning/src/ln/channelmanager.rs