Split InvoiceRequest::verify_and_respond_using_derived_keys
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 15 Jun 2023 22:13:55 +0000 (17:13 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 29 Aug 2023 16:08:04 +0000 (11:08 -0500)
commit21fa551825026c0d41618874f12792e15f8f790e
tree4486ef1e059c0bd10323e7ae5f46f03636bba3f6
parent32d6e91fd6547241a04dc7827e11efe0ed7e5f4f
Split InvoiceRequest::verify_and_respond_using_derived_keys

InvoiceRequest::verify_and_respond_using_derived_keys takes a payment
hash. To avoid generating one for invoice requests that ultimately
cannot be verified, split the method into one for verifying and another
for responding.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs