LndHub icon indicating copy to clipboard operation
LndHub copied to clipboard

Add support to pass description_hash to LND

Open bumi opened this issue 2 years ago • 7 comments

This adds support to pass an additional, optional description_hash to the addinvoice call. The API stays the same it simply adds support for passing an additional parameter.

Some applications (e.g. LNURLpay/lighting addresses) require the possibility to set a description_hash. This becomes possible with this change.

bumi avatar Oct 27 '21 23:10 bumi

+1

I also have the need for description_hash in a project im working on. Since https://github.com/BlueWallet/LndHub/pull/291 is a bigger change, and seem like it will take sometime before it's merged this update would be more than suitable as a stop gap for us to provide lnurl-pay functionality on-top of lndhub.

johnsBeharry avatar Nov 14 '21 20:11 johnsBeharry

I also think full lnurl* support should not be part of LNDhub and LNDHub should only be a small accounting layer on top of LND. Anything LNURL* related can then be built using the LNDHub API in a separate service.

bumi avatar Nov 14 '21 20:11 bumi

I also think full lnurl* support should not be part of LNDhub and LNDHub should only be a small accounting layer on top of LND. Anything LNURL* related can then be built using the LNDHub API in a separate service.

I agree with this, but shouldn't LNDHub have a public endpoint to fetch an invoice, without the need for an Authorization header? You can still have rate limiting ofcourse, but I feel it would make the implementation of a supporting LNURL service a lot easier.

kiwiidb avatar Nov 19 '21 07:11 kiwiidb

hmm... I don't have much thoughts about this. But then it would need to implement the LNURL response also? or it would be a custom response format (which I think would be helpful to implement features to call lndhub from JS in the browser (e.g. for some tipping)

bumi avatar Nov 19 '21 17:11 bumi

@Overtorment this would be a very helpful addition for LNURL support – please consider integrating it.

dennisreimann avatar May 10 '22 13:05 dennisreimann

@dennisreimann The bluewallet team has stated that there won't be any new features added to lndhub.io. Check out https://github.com/getAlby/lndhub.go for an alternative.

kiwiidb avatar May 10 '22 13:05 kiwiidb

@kiwiidb thanks for the heads-up.

That's unfortunate as I'm working on an integration of LNDhub wallets for BTCPay Server. I'd like to allow merchants to use their BlueWallet account as an external Lightning Node.

From what I see, they will then also be able to use their Alby wallet for that – glad that your compatible API seems to be developed further :)

dennisreimann avatar May 10 '22 14:05 dennisreimann