lightningd / plugins

Community curated plugins for core-lightning
BSD 3-Clause "New" or "Revised" License
265 stars 129 forks source link

donations/request-invoice: lnurl payRequests support? #304

Closed laanwj closed 2 years ago

laanwj commented 2 years ago

I think it would be nice if the "request-invoice" or "donations" plugin could act as a payRequests callback (see this diagram). This would make it possible to accept donations on a user@domain.tld lightning address with only c-lightning and no additional software.

It's a very minimal JSON-based protocol, wouldn't add much to the complexity. Basically: implementing step 5 and 6 of lnurl spec 06. In addition to an amount the callback can also get a comment parameter (see lnurl spec 12), it would be useful to store this with the invoice somehow.

(Possibly there is already a solution for this, but couldn't find anything in this repo in a quick search)

Edit: Might actually be better to add this to request-invoice? It seems it's already similar enough.

laanwj commented 2 years ago

Closing as there is a PR for this now, #307