lnd/invoices
Elle Mouton b0d3e4dc0d
multi: extract path ID and total amt from received payment
We've covered all the logic for building a blinded path to ourselves and
putting that into an invoice - so now we start preparing to actually be
able to recognise the incoming payment as one from a blinded path we
created.

The incoming update_add_htlc will have an `encrypted_recipient_data`
blob for us that we would have put in the original invoice. From this we
extract the PathID which we wrote. We consider this the payment address
and we use this to derive the associated invoice location.

Blinded path payments will not include MPP records, so the payment
address and total payment amount must be gleaned from the pathID and new
totalAmtMsat onion field respectively.

This commit only covers the final hop payload of a hop in a blinded
path. Dummy hops will be handled in the following commit.
2024-07-26 09:54:18 +02:00
..
errors.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
interface.go multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00
invoice_expiry_watcher_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoice_expiry_watcher.go remove repetitive words 2024-03-07 14:05:47 +08:00
invoiceregistry_test.go sqldb: bump modernc.org/sqlite to 1.29.10 which fixes init data race 2024-07-04 17:32:12 +02:00
invoiceregistry.go multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00
invoices_test.go sqldb+invoices: add migration to fix incorrectly stored invoice expiries 2024-07-09 08:39:57 +02:00
invoices.go invoices: add UpdateType to InvoiceUpdateDesc 2023-03-13 13:11:06 -07:00
log.go invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
mock.go invoices: remove the now unused ScanInvoices method 2023-10-18 16:15:58 +02:00
resolution_result.go trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
resolution.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
setup_test.go invoices: move InvoiceDB tests unrelated to kvdb to invoices package 2024-02-19 20:47:24 +01:00
sql_store.go sqldb+invoices: add migration to fix incorrectly stored invoice expiries 2024-07-09 08:39:57 +02:00
test_utils_test.go multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00
test_utils.go multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
update_invoice_test.go invoices: move UpdateInvoice implementation to the invoices package 2024-02-19 20:47:24 +01:00
update_invoice.go invoices: fix linter issues after the move 2024-02-19 20:47:24 +01:00
update.go multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00