Skip to content

Instantly share code, notes, and snippets.

View t-bast's full-sized avatar
https://keybase.io/tbast

Bastien Teinturier t-bast

https://keybase.io/tbast
View GitHub Profile
@t-bast
t-bast / prepaid-on-the-fly-liquidity.md
Last active November 8, 2023 16:46
On-the-fly channel liquidity (prepaid by sender)
@t-bast
t-bast / coin-selection-lsp.md
Last active January 3, 2024 14:07
Coin selection for liquidity providers

Coin selection for liquidity providers

Bitcoin Core's coin selection algorithms optimizes mostly for the following metrics:

  • keep a low utxo count by consolidating regularly
  • avoid creating a change output
  • when a change output is needed, use an amount equivalent to the payment (for privacy)

This doesn't match what liquidity providers need. Liquidity providers need to:

@t-bast
t-bast / on-the-fly-channel-funding.md
Last active May 15, 2024 14:01
On-the-fly channel funding based on liquidity ads

Continuous on-the-fly liquidity for mobile wallets

Liquidity is always provided by an on-chain transaction (channel open or splice), which can be triggered by:

  • On-chain funds added by the wallet user.
  • A lightning payment to the wallet user requiring additional liquidity.

Table of Contents