Skip to content

Support sending PaymentMetadata in HTLCs#2127

Merged
TheBlueMatt merged 15 commits intolightningdevkit:mainfrom
TheBlueMatt:2023-03-payment-metadata
Apr 19, 2023
Merged

Support sending PaymentMetadata in HTLCs#2127
TheBlueMatt merged 15 commits intolightningdevkit:mainfrom
TheBlueMatt:2023-03-payment-metadata

Conversation

@TheBlueMatt
Copy link
Copy Markdown
Collaborator

This adds all the required infrastructure to send PaymentMetadata in HTLCs, largely as a rebase of #1445 (with commit ordering shuffled around so that the new struct is added first - I ended up rewriting that commit as it makes sense to go first, rather than strictly rebasing the existing work).

While this does deserialize the new field in the onion, it doesn't actually store it as HTLCs are received and expose it to users.

By switching the payment secret public API parameters to a new struct we also have more space to grow when we add the ability to have custom TLVs in the onion.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants