]> git.bitcoin.ninja Git - rust-lightning/commit
Don't include HMAC in Refund paths
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 2 Aug 2024 14:39:52 +0000 (09:39 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Aug 2024 15:42:18 +0000 (10:42 -0500)
commitcfd098048ecddf494c803b925643647ec3ce388a
tree878a832533f5cd840f0f3785ef8eaef1c61bb61b
parentfbaf093ff4d24ef7474c7e99d55b74f3f51abc21
Don't include HMAC in Refund paths

Refunds are typically communicated via QR code, where a smaller size is
desirable. Make the HMAC in OutboundPayment data optional such that it
is elided from blinded paths used in refunds. This prevents abandoning
refunds if the reader sends an invoice_error instead of an invoice
message. However, this use case isn't necessary as the corresponding
outbound payment will either timeout when the refund expires or can be
explicitly abandoned by the creator.
lightning/src/blinded_path/message.rs
lightning/src/ln/channelmanager.rs