BlueWallet / LndHub

Wrapper for Lightning Network Daemon. It provides separate accounts for end-users
http://LndHub.io
MIT License
798 stars 198 forks source link

Allow payments to Re-Usable Static AMP Invoices #430

Open grunch opened 2 years ago

grunch commented 2 years ago

I am trying to pay a lnd static invoice but I am getting this response

photo_2022-04-30_11-30-46

Allowing static invoices will unlock a native way of sending tips over lightning and since you are using lnd it would be very easy to implement 😃

More infor here: https://docs.lightning.engineering/lightning-network-tools/lnd/amp

xraid commented 2 years ago

the new LND AMP static invoices uses a V2 call to LND and LNDHub uses V1 of the call to LND

the return from V1 call => that the BlueWallet and other compatible implementations use are expecting return in V1 format

the V2 call has a a different return format

a way to prototype enabling LND AMP static invoices is to have a proxy in front of LNDHub that calls into LND V2 and transpose back as V1 to caller ...

further the V2 call has a different LND local DB structure that implementations and LNDHub and client implementations need consider ...

it can be done but a total overhaul / remake of LNDHub would then be recommended ...