]> git.bitcoin.ninja Git - rust-lightning/commit
HMAC construction and verification for PaymentID
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Jul 2024 16:38:44 +0000 (11:38 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Aug 2024 15:42:17 +0000 (10:42 -0500)
commitf52bd0b8e3a0750f5a5fd2d2732b483b60c5eac7
tree26aa448a7dc32de672697c8ed1ce2798a249a836
parent5ab40b2f3c3bb18c4a420ea18a889df8d7a37863
HMAC construction and verification for PaymentID

When receiving an InvoiceError in response to an InvoiceRequest, the
corresponding payment should be abandoned. Add functions for
constructing and verifying an HMAC over a Payment ID to allow for this.
lightning/src/offers/signer.rs