-
Notifications
You must be signed in to change notification settings - Fork 521
Description
For stateless payments, we often want to include information about an offer/invoice-request in the blinded path we return in an invoice so that we have the info after the sender has (finally) paid their anti-DoS token with an HTLC. Thus, we keep finding ourselves trying to add additional data back in the payment onion but struggling with its limited size. While increasing the size of the HTLC onion (ignoring compat concerns) isn't a very good idea as it allows for more loops and additional liquidity DoS concerns, that doesn't mean we can't add a second "auxillary data" onion in update_add_htlc messages.
There's obviously upgrade/rollout concerns, but assuming we are willing to wait, are people open to such a thing? It'd mean somewhat larger update_add_htlc messages and additional storage overhead for each HTLC between receipt and forward, but having an extra KB or five of data space without preventing someone from sending an HTLC over five hops would be quite nice. Thoughts?