Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement keysend sending support for spontaneous payments #3792

Merged
merged 3 commits into from
Jul 13, 2020
Merged

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Jun 25, 2020

This has been a long time in the making, but we finally are able to build new features on top of the paymod series.

This modifier is rather simple, but that's all it takes: add the payment preimage, that we generate randomly, into the onion payload for the final hop, so a recipient that knows to look for it can claim the incoming payment.

Todo

  • Write the man-page for lightning-cli keysend

@cdecker cdecker added feature Optech Make Me Famous! Look! Look! Look! COOL NEW FEATURE! labels Jun 25, 2020
@cdecker cdecker self-assigned this Jun 25, 2020
@cdecker cdecker added this to the v0.9.0 milestone Jun 25, 2020
@cdecker cdecker force-pushed the paymod-03 branch 2 times, most recently from 414efa3 to 7b65e85 Compare June 29, 2020 12:01
@cdecker cdecker force-pushed the paymod-03 branch 2 times, most recently from fd1eb65 to 8715eb1 Compare July 2, 2020 14:58
@cdecker cdecker force-pushed the paymod-03 branch 4 times, most recently from f0602e8 to 29f9a7e Compare July 6, 2020 08:38
@cdecker cdecker force-pushed the paymod-03 branch 3 times, most recently from f97fd2c to 8ebcef8 Compare July 6, 2020 15:05
@cdecker cdecker force-pushed the keysend branch 2 times, most recently from d7e0265 to a15ef99 Compare July 6, 2020 16:46
@cdecker cdecker force-pushed the paymod-03 branch 4 times, most recently from 8ac4e2e to b606f46 Compare July 7, 2020 19:49
@cdecker cdecker force-pushed the keysend branch 2 times, most recently from 1fb3a9c to 12886fb Compare July 8, 2020 09:53
@cdecker cdecker changed the base branch from paymod-03 to master July 8, 2020 18:10
plugins/keysend.c Show resolved Hide resolved
plugins/keysend.c Outdated Show resolved Hide resolved
plugins/keysend.c Outdated Show resolved Hide resolved
doc/lightning-keysend.7.md Outdated Show resolved Hide resolved
cdecker added 2 commits July 9, 2020 10:32
This makes use of the payment modifier structure to just add the preimage to
the TLV payload for the last hop.

Changelog-Added: JSON-RPC: The `keysend` command allows sending to a node without requiring an invoice first.
Allows us to do fewer allocations, since the argument doesn't have to be tal
allocated itself.

Suggested-by: Rusty Russell <@rustyrussell>
@vindard
Copy link

vindard commented Feb 17, 2021

Out of curiosity, does this supersede #3611 or simply build on top of it?

@rustyrussell rustyrussell deleted the keysend branch August 15, 2022 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Optech Make Me Famous! Look! Look! Look! COOL NEW FEATURE!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants