Add an encryption key to ExpandedKey for Offers
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 24 Aug 2023 20:16:53 +0000 (15:16 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 29 Aug 2023 16:08:11 +0000 (11:08 -0500)
commit4fafae0733b451754c77c0692f8941d9122b78ed
treebab77258f04c2038a5b058844270103af9a9728f
parent971cb20d2e06e762aaa3b2033487a87e45369dc7
Add an encryption key to ExpandedKey for Offers

Metadata such as the PaymentId should be encrypted when included in an
InvoiceRequest or a Refund, as it is user data and is exposed to the
payment recipient. Add an encryption key to ExpandedKey for this purpose
instead of reusing offers_base_key.
lightning/src/ln/inbound_payment.rs
lightning/src/util/crypto.rs