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

with LUD-16, what prevents someone from requesting an infinite amount of invoices from your ln node? #92

Open
AndySchroder opened this issue Sep 12, 2021 · 3 comments

Comments

@AndySchroder
Copy link

With LUD-16, what prevents someone from requesting an infinite amount of invoices from your ln node? Seems like this could cause problems with wasted data and bog down the ln node keeping track of a bunch of invoices that may never be used. Could some kind of proof of work be required in order for an invoice to be returned?

@fiatjaf
Copy link
Collaborator

fiatjaf commented Sep 13, 2021

This is a good point, but it's not a problem only of LNURL. Most services out there are susceptible to it.

In theory you can return invoices without having to store and keep track of them, but aside from LNTXBOT I think no one has ever implemented this technique.

You can also do basic rate-limiting.

@ZmnSCPxj-jr
Copy link

The m field in invoices seems like a good use (store your data encrypted in the m field, do not store anything about the invoice locally), but it is recent and I am uncertain how widely-implemented it is.

@fiatjaf
Copy link
Collaborator

fiatjaf commented Feb 7, 2023

The m field has existed for over an year now. Everybody has implemented it. I think it is safe to rely on it at this point.

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

No branches or pull requests

3 participants