Skip to content

Custom HTLC TLVs #1298

Closed
Closed

Description

@TheBlueMatt

Probably a bit annoying to plumb through, but people keep coming up with uses for payment messages, so we really need to support this.

Activity

  1. added this to the 0.1.1 milestone on Feb 6, 2022
  2. self-assigned this
    on Feb 7, 2022
  3. moneyball commented on Feb 8, 2022

    @moneyball
    Contributor

    What are some example use cases we've heard of?

  4. TheBlueMatt commented on Feb 8, 2022

    @TheBlueMatt
    CollaboratorAuthor

    I believe the commonly described use-cases today are only the "podcasting extra data" bLIP - sending extra data with a keysend payment to indicate that you're tipping while listening to a podcast with metadata about the current timestamp. If you're doing it via invoice data you should probably do it using the new payment metadata info instead, but for application-specific keysend it may make more sense.

  5. andozw commented on Apr 9, 2022

    @andozw

    Hey @TheBlueMatt, I am interested in working on this. Do you have an idea in mind for the data structure to use or any other ideas for guidance? Thanks!

  6. TheBlueMatt commented on Apr 10, 2022

    @TheBlueMatt
    CollaboratorAuthor

    I think the way we should go about this is to do what I mentioned at #1221 (comment) In order words, taking #1221 and rebasing it, but also taking the new payment_metadata parameter and replacing it (and the existing payment_secret parameter) with a PaymentMetadata (or another name? maybe RecipientInfo?) struct that contains both.

    From there it'll be a relatively lighter lift to add custom onion TLVs - we'll need to tweak our TLV serialization logic as well, but likely with a new macro variant or new macro.

    I'd suggest doing the two in separate PRs, as it provides a logical split point.

  7. andozw commented on Apr 16, 2022

    @andozw

    Was a bit tricky but I finally rebased 1221.
    The changes are on my remote and I'll open a new PR after working on the next step to create the struct to hold the payment_metadata and existing payment_secret.

  8. alecchendev commented on May 17, 2023

    @alecchendev
    Contributor

    Currently working on this, hope to have a draft PR up within the next couple of days :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions