]> git.bitcoin.ninja Git - rust-lightning/commit
Add InvoiceRequest::verify_using_recipient_data
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Jun 2024 00:18:26 +0000 (19:18 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:02 +0000 (11:34 -0500)
commite15641504894d7f6e0c0492db569a13d117eb084
tree0d66d527ce7f39a6ab8b1e1454ca50a64f7b8fdf
parent219691f9ef7b709fbb128cd39e9559ee02b50e18
Add InvoiceRequest::verify_using_recipient_data

Invoice requests are authenticated by checking the metadata in the
corresponding offer. For offers using blinded paths, this will simply be
a 128-bit nonce. Allows checking this nonce explicitly instead of the
metadata. This will be used by an upcoming change that includes the
nonce in the offer's blinded paths instead of the metadata, which
mitigate de-anonymization attacks.
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/signer.rs