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

Dunder: on-demand channel openings #242

Open
7 tasks done
hsjoberg opened this issue Sep 10, 2020 · 4 comments
Open
7 tasks done

Dunder: on-demand channel openings #242

hsjoberg opened this issue Sep 10, 2020 · 4 comments
Labels
lnd This issue relates to lnd ux Related to user experience of the wallet

Comments

@hsjoberg
Copy link
Owner

hsjoberg commented Sep 10, 2020

Introduction

A technique to allow incoming payments when the wallet has no inbound channels is to have an intermediary node (LSP)

  1. Intercept the incoming HTLC
  2. Settle it itself instead of continuing forwarding it (by giving preimage to LSP)
  3. Open a channel to the wallet with push amount

To do this the wallet can create an invoice with a routehint that leads to a LSP node with a fake short channel id.
Once the LSP sees an incoming HTLC with forwarding information specifying said fake short channel id, it can proceed with the protocol specified above.

To further improve this 0-conf channels can be utilized, although this isn't possible in lnd right now.

Implementation

To implement this in Blixt is a huge task, so this issue acts as an umbrella ticket.

  • Create PoC using HtlcInterceptor API
  • blixt-lsp software
    • Figure out how to talk to Blixt. WebSockets? How to authenticate? What to do if something goes wrong?
  • Create subsystem that talks with blixt-lsp
  • Handle the invoice creation and Blixt and mark it as pending/settled
  • Set up an lnd node somewhere with said blixt-lsp software
  • Get some inbound liquidity to the lnd node
@hsjoberg hsjoberg added lnd This issue relates to lnd ux Related to user experience of the wallet labels Sep 10, 2020
@hsjoberg hsjoberg pinned this issue Sep 12, 2020
@hsjoberg hsjoberg unpinned this issue Nov 24, 2020
@hsjoberg hsjoberg pinned this issue Feb 7, 2021
@hsjoberg
Copy link
Owner Author

hsjoberg commented Mar 3, 2021

@hsjoberg
Copy link
Owner Author

Implemented in 2ec7bb7

@lndhub-admin
Copy link

https://github.com/hsjoberg/dunder deprecated

https://github.com/hsjoberg/dunder-lsp

@hsjoberg
Copy link
Owner Author

@lndhub-admin Thank you! Fixed

@hsjoberg hsjoberg moved this from To do to In progress in Things to finish before the end of the year Nov 12, 2021
@hsjoberg hsjoberg changed the title On-demand channel openings Dunder: on-demand channel openings Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lnd This issue relates to lnd ux Related to user experience of the wallet
Development

No branches or pull requests

2 participants