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

Add multi_invoice_lookup to NWC / NIP47 #1385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blackcoffeexbt
Copy link

Performing individual lookups for multiple invoices can be very network heavy and potentially a DOS vector. Adding a multi_invoice_lookup method to NIP47 will reduce network usage and reduce the potential for a wallet service / relay DOS attack.

@rolznz
Copy link

rolznz commented Jul 28, 2024

@blackcoffeexbt have you implemented this somewhere? I'm interested to hear what are you working on!

@blackcoffeexbt
Copy link
Author

@blackcoffeexbt have you implemented this somewhere? I'm interested to hear what are you working on!

Not yet but I will. We're adding NWC support to LNbits. With LNbits there's likely to be multiple payments that aren't settled so having multi invoice lookup support would be really useful. I imagine other projects would benefit from it too.

@rolznz
Copy link

rolznz commented Jul 30, 2024

Would notifications possibly solve this? #1164

@blackcoffeexbt
Copy link
Author

@rolznz Almost certainly!

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.

2 participants