Skip to content

Additional auxillary data for HTLCs #1297

@TheBlueMatt

Description

@TheBlueMatt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions