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

Using a reverse swap claim transaction to directly fund a new lightning channel #138

Open
Scalena opened this issue Apr 20, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Scalena
Copy link

Scalena commented Apr 20, 2024

In principle, it should be possible to use a reverse swap claim transaction to directly fund a new lightning channel. However, the process is non-trivial, since the steps of reverse swapping and channel negotiation would have to be interleaved. Coarsely outlined:

  1. Initiate reverse swap, pay invoice and gather information for constructing the claiming input,
  2. initiate channel negotiation to gather the channel lock-in address,
  3. construct the claim/fund transaction (and potentially re-negotiate the transaction with the peer node),
  4. finish channel negotiation, sign and broadcast the claim/fund transaction.

If the channel negotiation fails, a normal claim transaction has to be created automatically instead.

Apart from the obvious benefit of saving one on-chain transaction, this would also be a privacy benefit for node operators, because the claim/fund transaction would be completely separate from their on-chain wallet and it is not generally visible from the outside who initiated the channel.

@kilrau
Copy link
Member

kilrau commented Apr 24, 2024

Awesome idea. Love it. We'll have a look how this could work (especially with the dual funding channel establishment protocol gaining traction) after we shipped chain swaps in boltz-client 🙌

@kilrau kilrau added the enhancement New feature or request label Apr 24, 2024
@kilrau kilrau self-assigned this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants