Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
lightning-loop-pool-lit【部署与运维】Lightning Labs liquidity tools: Loop (off-chain ↔ on-chain swaps), Pool (auction-based liquidity market), Lightning Terminal (Lit, web UI). Submarine swap mechanics behind Loop. As of September 2026 Loop is the live general-purpose option: Boltz swaps are offline (suspended 2026-08-03) and Peerswap rejects new L-BTC swaps (v7.0.1, 2026-09-07). USE WH…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Lightning Labs' suite of liquidity-management tools, built on top of LND.
Loop lets you convert between on-chain and Lightning balance:
Use case: drain channels, reduce Lightning balance into on-chain.
LND ──── HTLC payment ────► Loop server
Loop server publishes on-chain HTLC
LND watches chain, receives on-chain payout via preimage reveal.
Use case: inbound liquidity, rebalance.
LND publishes on-chain HTLC ────► Loop server
Loop server pays LND HTLC over LN
On-chain HTLC settled via preimage.
Loop = submarine swap. Atomic via shared preimage / HTLC scripts. Fees: ~0.5% typically.
loop in --amt 1000000 --htlc_conf_target 6
loop out --amt 5000000 --channel <chan-id>
loop monitor # watch ongoing swaps
Pool is a marketplace where:
Pool runs per-block batched auctions. Winning matches get a dual-funded channel.
pool accounts new --amt 1000000 # deposit funds for bidding
pool orders submit ask --amt 500000 --duration 144 ... # offer to provide
pool orders submit bid --amt 1000000 --duration 144 ... # request liquidity
Web UI bundling LND + Loop + Pool + Faraday + Taproot Assets daemon
litd # runs LND + sub-services + UI on port 8443
Web UI features:
Both Loop In and Loop Out use atomic swaps via HTLC:
P, hash H = SHA256(P).H to Loop server. HTLC route ends at
Loop server with H.P
revealed).P, refundable by Loop server after CLTV.P.P to fulfill the LN HTLC, gets paid.Atomic: either both swap legs settle or neither (both refund).
Lightning Loop has the broadest impl support; Peerswap is more trust-minimized but requires both parties to support it, and as of September 2026 covers Bitcoin swaps only.
htlc_conf_target.