-
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
Allow passing of description_hash
to the add invoice call
#317
Comments
iirc when passing in i would recommend leave LndHub as is and create a side microsevice for lnurl related extensibility using the popular "BlueWallet Lightning Protocol" used in LndHub and elsewhere ... |
but that's up to whoever uses the LndHub API. Why should LndHub "protect" against this as this is how LND works. And there are reasons to use a regarding lnurl: afaik the payment request must have the LNURL metadata hash as description_hash - otherwise it is rejected. So a side microservice using lndhub would not work. |
i made withdraw and pay with existing LndHub calling please expand |
(there was a formatting issue in my previous reply)
the |
correct in as "Thus LndHub currently can not be used as a backend for an lnurl/lightning address service." that is why one should use a separate microservice for extending LndHub ! ... i think we are confusing description_hash with payment_hash that i used with satisfactory result. |
also BlueWallet need be able read memo for presentation in its UI ?, whereas with |
The LNURL spec says:
maybe I am confusing something, but if I understand it correctly then a separate service would not work because the payment request must have the correct data ( BUT this discussion is also too specific to LNURL. The description_hash is not really readable, that is correct... but then that is up to whoever uses the LndHub API., isn't it? |
make invoice with a hash in metadata: --later verify the metadata: is payed LndHub has in Redis the payment_hash convenient already from when made invoice and a lnurl-pay implementation can verify "if and when" invoice payed. this way memo intact at same time lnurl satisfied. description_hash in lnurl spec need not be same as invoice description_hash |
not sure if I understand what you mean. sorry.
where do you have this from?
we are talking about end-user wallets here. End-user wallets check the payment request. But back to the question: why would you not want to allow the users of the LndHub API to pass additional params to LND? |
it is possible use a NEW endpoint in LndHub either running in same memarea or as a microservice in parralell with LndHub where service runs with separate :port, using a lnurlp-router for ex. `/YourQRCodeUrl/enpoint/doWhaterverYouLike. LndHub is frozen other then acute bugs is my understanding, that do not hinder Us from extending it. |
a correct service will sometimes want to know if invoice is paid and can do so with this |
afaik for LNURLpay this is wrong. the spec clearly says it must be the hash of the metadata string. A new "microservice in parralell" will also not work because for LNURLpay it must be in the payment request.
does that mean LndHub is not actively improved right now? I've experimented with this: bumi@ac2061c |
it is the same payment request , all of any extension service is using a LndHub account via "BlueWallet Lightning Protocol" |
a payment request is specific for one payment and not all the "same payment request" |
This seems to be a blocker for SatSale to implement lightning address support for LndHub backend. |
Is there a reason why the
description_hash
(and potentially other params) can not be passed on to LND?https://github.com/bumi/LndHub/blob/master/controllers/api.js#L192
Allowing to pass in a
description_hash
would allow lndhub to be used as a lightning address backend.The text was updated successfully, but these errors were encountered: