]> git.bitcoin.ninja Git - rust-lightning/commit
Refund metadata and payer id derivation
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 6 Feb 2023 21:10:07 +0000 (15:10 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Apr 2023 02:31:07 +0000 (21:31 -0500)
commit1a7540f2c936ec778e76050f22371829dbfa9255
treeae32812067226613b321376101060abbd558ad37
parent022eadc4dbf0f60179674f936d604cade6c5dd9e
Refund metadata and payer id derivation

Add support for deriving a transient payer id for each Refund from an
ExpandedKey and a nonce. This facilitates payer privacy by not tying any
Refund to any other nor to the payer's node id.

Additionally, support stateless Invoice verification by setting payer
metadata using an HMAC over the nonce and the remaining TLV records,
which will be later verified when receiving an Invoice response.
lightning/src/offers/refund.rs