LndHub icon indicating copy to clipboard operation
LndHub copied to clipboard

Allow payments to Re-Usable Static AMP Invoices

Open grunch opened this issue 2 years ago • 1 comments

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

grunch avatar Apr 30 '22 14:04 grunch

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 ...

xraid avatar May 16 '22 11:05 xraid