lnd/htlcswitch
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
..
hodl multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
hop multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00
testdata multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
circuit_map_test.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
circuit_map.go multi: add SpewLogClosure to avoid code repetition 2024-07-25 22:18:49 +08:00
circuit_test.go go.mod: update lightning-onion dep 2024-07-26 09:53:48 +02:00
circuit.go htlcswitch: introduce wrapper type error encrypter to identify blinded 2024-04-25 09:47:10 -04:00
decayedlog_test.go htlcswitch: use T.TempDir to create temporary test directory 2022-08-24 09:03:01 +08:00
decayedlog.go multi: make sure missionControlStore catches done signal 2024-07-23 21:30:08 +08:00
failure_detail.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
failure_test.go multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
failure.go htlcswitch: add linkError field to htlcpacket 2020-02-06 19:43:29 +02:00
held_htlc_set_test.go multi: create channeldb/models package 2023-01-16 07:14:55 -08:00
held_htlc_set.go multi: create channeldb/models package 2023-01-16 07:14:55 -08:00
htlcnotifier.go multi: add debug logs to catch slow shutdown 2023-10-06 16:34:47 -07:00
interceptable_switch.go multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00:00
interfaces.go htlcswitch: add receiver-side inbound fee support 2024-03-31 16:49:19 +02:00
link_isolated_test.go htlcswitch: remove Switch reference from channelLink 2024-03-05 16:43:29 -08:00
link_test.go multi: apply the new type lntypes.WeightUnit 2024-05-25 13:37:13 +08:00
link.go multi: extract path ID and total amt from received payment 2024-07-26 09:54:18 +02:00
linkfailure.go multi: ensure link is always torn down due to db failures, add exponential back off for sql-kvdb failures (#7927) 2023-08-30 16:48:00 -07:00
log.go multi: add NewLogClosure in lnutils to avoid repetition 2024-07-25 21:25:23 +08:00
mailbox_test.go htlcswitch: use mock clock in TestMailBoxAddExpiry 2023-01-12 22:08:15 +08:00
mailbox.go htlcswitch: set packet obfuscator for failures through switch 2024-04-25 09:47:12 -04:00
mock.go htlcswitch: create error obfuscator with wrapped type for blinded 2024-04-25 09:47:11 -04:00
packet.go htlcswitch: add receiver-side inbound fee support 2024-03-31 16:49:19 +02:00
payment_result_test.go htlcswitch: clean up test resources and temporary files 2022-10-10 10:32:39 -07:00
payment_result.go multimutex: remove HashMutex, make Mutex type a type param 2023-06-01 17:39:49 -07:00
resolution_store_test.go htlcswitch: use T.TempDir to create temporary test directory 2022-08-24 09:03:01 +08:00
resolution_store.go htlcswitch: introduce resolutionStore to persist cnct messages 2022-04-29 16:40:16 -04:00
sequencer.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
switch_test.go htlcswitch: remove Switch reference from channelLink 2024-03-05 16:43:29 -08:00
switch.go multi: add SpewLogClosure to avoid code repetition 2024-07-25 22:18:49 +08:00
test_utils.go lnwallet: add configurable cache for web fee estimator 2024-05-04 14:41:41 +08:00