]> git.bitcoin.ninja Git - rust-lightning/commit
Use different iv_bytes for blinded path metadata
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Jul 2024 22:54:31 +0000 (17:54 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 30 Jul 2024 21:06:24 +0000 (16:06 -0500)
commit293543b7c3f4f7601569ea4362165db08b120810
tree156b9961ebe56a115aab8b880c95ac890788f917
parent8849efe0deeb28ede680b83f0a7f9a6543627bd5
Use different iv_bytes for blinded path metadata

Best practice is to use different IV bytes for different contexts.
Update Offer and Refund metadata computation to use different IV bytes
when the metadata is included in a blinded path. For invoice requests,
the metatdata will always be in the blinded path, so it remains the
same.
lightning/src/offers/invoice.rs
lightning/src/offers/offer.rs
lightning/src/offers/refund.rs