-
Notifications
You must be signed in to change notification settings - Fork 201
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
API Key [read-only] #328
Comments
up |
try use lncli on LND machine :
and maybe make a script of above dance ... |
Thank you for your help, but your solution does not help to solve our problem. We need to create an invoice, but we only have a full (read/write) url for lndhub. |
You could also try use the API call : GET LndHub-URL/decodeinvoice that would return status of decoded invoice string |
I think I understand what you're asking for and this is genius. Needs to happen. So maybe LNDhub could generate a password that only it knows (different for each node), and run any lightning wallet string through a hashing function using that password. The resulting hash could be used as an API key. When feeding this hash into a normal API call rather than the "account:password" authorization, LNDhub could decode which wallet and password to use, but because it was that format, know not to allow spending, only generating invoices to recieve money. You could literally implement things like the strike tips that are on twitter with this API. WOULD BE MASSIVE. Or fork plebpay as well. Is this sort of what you were thinking? |
This pull request has the functionality I think you would need for this feature. It has not been merged though. |
For a quick MVP of above described functionality one could do the following --takes 10 minutes.
The above enables Node operator of a 'lndhub-invoice-only' instance to let people create invoices where funds is controlled by the Node Operator, where eXtracurricular is make a script for create a admin account and a new endpoint in 'lndhub-invoice-only/controllers/api.js', that would show balances of all accounts in instance that has memo flagged |
Here at Bitcoin Beach Brazil, we are using LND Hub and Bluewallet.
Now, we are trying to generate some invoices with LNDHUB API.
All goes fine, but we are missing a great API feature, that is, a read-only API Key.
A API Key that only generates and checks the status of that invoice.
It would be a great feature.
[]'s
Fernando
The text was updated successfully, but these errors were encountered: