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

Recurring Payments #447

Open
Polyomino opened this Issue Jul 1, 2018 · 7 comments

Comments

Projects
None yet
5 participants
@Polyomino
Copy link

Polyomino commented Jul 1, 2018

Does a standard for recurring payments belong here?

I think lnd can be made to support recurring payments by issuing macaroons with permissions to spend in the future. I think we should avoid a dependency on macaroons for BOLTs if they aren't already.

Is there an existing work stream in this direction?

@rustyrussell

This comment has been minimized.

Copy link
Collaborator

rustyrussell commented Jul 9, 2018

Recurring payments should work with discrete log payments (eg. scriptless scripts), and I've been toying with the idea of a bolt11 extension for 1.1. There are questions over whether we should allow specification of oracles for exchange volatility, but that may be trying to boil the ocean...

@Roasbeef

This comment has been minimized.

Copy link
Member

Roasbeef commented Jul 9, 2018

What do you mean precisely by "recurring payments"?

@Roasbeef

This comment has been minimized.

Copy link
Member

Roasbeef commented Jul 9, 2018

Or do you mean like "spontaneous payments"?

@Roasbeef

This comment has been minimized.

Copy link
Member

Roasbeef commented Jul 9, 2018

In either case, it would seem that this is purely and end to end thing, and doesn't really require a BOLT. But if something emerges and is popular, then we can document it and start to standardize it.

@rustyrussell

This comment has been minimized.

Copy link
Collaborator

rustyrussell commented Jul 10, 2018

I assumed he's referring to an invoice which says "pay this amount this often". It's a common request in the Bitcoin world, and makes even more sense for lightning due streaming services.

@cdecker cdecker added the help wanted label Jul 23, 2018

@cdecker cdecker added this to the Someday milestone Jul 23, 2018

@cdecker

This comment has been minimized.

Copy link
Collaborator

cdecker commented Jul 23, 2018

Adding this to the "someday" milestone since we need to first figure out a number of things. For once we need to agree on a format to specify recurring payment times.

Additional feedback from users is encouraged to better define the use-case and the requirements that this feature should consider.

@jb55

This comment has been minimized.

Copy link
Contributor

jb55 commented Feb 4, 2019

For https://satsbacker.com, a lightning subscription/donation service I'm working on, all I would need is a way to do recurring spontaneous payments. Perhaps a clightning/lnd plugin that does this automatically.

The initial bolt11 could include what data needs to be encrypted in each spontaneous payment (account id, etc), and how often it should be sent.

The node could execute this spontaneous payment automatically until cancelled.

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