]> git.bitcoin.ninja Git - rust-lightning/commit
Elide metadata from Offer with derived keys
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Jun 2024 16:43:57 +0000 (11:43 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 22 Jul 2024 16:34:03 +0000 (11:34 -0500)
commitbf428478679193118e8d705aaeb5c98801496450
tree5d549a88c2f6a6beb96c6aeafa990661178c8fef
parent35b75fd1fdae40e0d2316da6ddcc725d35c60c50
Elide metadata from Offer with derived keys

When an Offer uses blinded paths, its metadata consists of a nonce used
to derive its signing keys. Now that the blinded paths contain this
nonce, elide the metadata as it is now redundant. This saves space and
also makes it impossible to derive the signing keys if an invoice
request is received with the incorrect nonce. The nonce shouldn't be
revealed in this case either to prevent de-anonymization attacks.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/offer.rs
lightning/src/offers/static_invoice.rs