Skip to content
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 payments to Re-Usable Static AMP Invoices #430

Open
grunch opened this issue Apr 30, 2022 · 1 comment
Open

Allow payments to Re-Usable Static AMP Invoices #430

grunch opened this issue Apr 30, 2022 · 1 comment

Comments

@grunch
Copy link

grunch commented Apr 30, 2022

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

@Overtorment Overtorment transferred this issue from BlueWallet/BlueWallet Apr 30, 2022
@xraid
Copy link
Contributor

xraid commented May 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xraid @grunch and others