lightning-ldk
БесплатноБез исполняемых скриптовНе проверенLDK (Lightning Dev Kit): modular Rust crates for building custom Lightning apps. ldk-node for opinionated quick-start. ChannelManager, ChainMonitor, Router…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
LDK (Lightning Dev Kit)
LDK is a library, not a daemon. Provides Rust crates with C/Swift/ Kotlin/JS bindings. See "Use cases" below for who ships it.
LDK is developed under the lightningdevkit GitHub org — it is not
a Lightning Labs project (Lightning Labs ships LND, Loop, Pool and
Taproot Assets). Dual-licensed Apache-2.0 / MIT.
Versions as of September 2026: the core lightning crate is 0.2.6
(2026-09-09), with 0.3.0-rc1 (2026-08-31) in release-candidate;
ldk-node is 0.7.0 (2025-12-03). The long 0.0.x line ended at
0.0.125 (2024-10-14) and was succeeded by 0.1.0 (2025-01-16), so any
0.0.x version floor you see quoted predates the current API.
Crates (selected)
lightning— core protocol logic.lightning-net-tokio— async TCP transport.lightning-persister— file-based persistence.lightning-background-processor— background task driver.lightning-block-sync— chain sync.lightning-transaction-sync— alternative tx-only sync.lightning-rapid-gossip-sync— fast gossip via signed snapshot.lightning-invoice— BOLT11 invoice handling.lightning-dns-resolver— bLIP-32 onion-message DNSSEC resolution, built on thednssec-provercrate. Versioned on its own track, at 0.3.1 (2026-06-19) while the core crate is on the 0.2 line.lightning-payer-proof— BOLT 12 payer-proof verification. In the workspace onmainfor the 0.3 line and not yet released: crates.io holds only a 0.0.1 name placeholder (2026-08-20, described as a "Dummy package for name hold") as of September 2026.ldk-node— opinionated bundling for quick-start.lightning-liquidity— LSP client/server primitives.bdkintegration crates.
Core primitives
// Persistence trait
trait Persist<ChannelSigner> { ... }
// Channel manager — owns all channels
let chan_mgr = ChannelManager::new(...);
// Chain monitoring — watches outputs, force-close events
let chain_mon = ChainMonitor::new(...);
// Router — pathfinding
let router = DefaultRouter::new(...);
// Background processor — drives async tasks
BackgroundProcessor::start(...);
User code provides:
- KeysManager — produces/derives keys.
- NetworkGraph — channel graph storage.
- EventHandler — react to events (payment received, channel opened).
- Persister — save state to disk / DB.
- FeeEstimator — fee rate source.
- BroadcasterInterface — broadcast txs.
ldk-node (quick-start)
// ldk-node 0.7.0 (2025-12-03): setters take &mut self, so build the
// Builder in place rather than chaining off Builder::new().
use ldk_node::bitcoin::Network;
use ldk_node::lightning_invoice::{Bolt11InvoiceDescription, Description};
use ldk_node::Builder;
let mut builder = Builder::new();
builder.set_network(Network::Bitcoin);
builder.set_chain_source_esplora("https://blockstream.info/api".to_string(), None);
builder.set_storage_dir_path("/path/to/data".to_string());
let node = builder.build().unwrap();
node.start().unwrap();
// Use the node
let address = node.onchain_payment().new_address().unwrap();
let desc = Bolt11InvoiceDescription::Direct(
Description::new("desc".to_string()).unwrap(),
);
let invoice = node.bolt11_payment().receive(amount_msat, &desc, 3600).unwrap();
node.bolt11_payment().send(&invoice, None).unwrap();
ldk-node exposes a single API surface across Rust + Swift/Kotlin/JS
bindings.
Async signer
For hardware wallets / remote signers:
trait NodeSigner { fn ecdh(&self, ...) -> Result<...>; ... }
trait ChannelSigner { fn sign_counterparty_commitment(&self, ...) -> ...; ... }
trait SignerProvider { fn derive_channel_signer(&self, ...) -> ChannelSigner; ... }
LDK supports async signing via EventHandler::handle_event returning
deferred sigs. Useful for hardware-wallet-backed Lightning.
Persistence model
LDK doesn't dictate storage. Common backends:
- File:
lightning-persisterwrites channel state to disk. - Database: SQLite, PostgreSQL — implement
Persisttrait. - Cloud: persist channel state encrypted to cloud storage (Mutiny did this; see "Use cases").
- Trustless replication: VSS (Versioned Storage Service) — the LDK
project's own encrypted cloud storage service
(
lightningdevkit/vss-server, Apache-2.0), not a Lightning Labs product.ldk-node0.7.0 can persist channel state to a VSS server.
Chain sync options
- bitcoind RPC —
lightning-block-syncpolls / ZMQs. - Esplora API —
lightning-transaction-syncvia Esplora REST. - Electrum — same crate, via Electrum protocol.
- Neutrino (BIP157/158) — light-client; for mobile.
Mobile uses Neutrino: lightning-block-sync downloads filters, scans locally for UTXO matches, downloads only relevant blocks.
Bindings
LDK provides:
- Rust native crates.
- C via
lightning-c-bindings. - Swift / iOS via
LDKSwiftandLDKNode. - Kotlin / Android via
LDKKotlinandldk-node-kotlin. - JS / WASM via `ldk-node-js
Установить lightning-ldk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл lightning-ldk?
LDK (Lightning Dev Kit): modular Rust crates for building custom Lightning apps. ldk-node for opinionated quick-start. ChannelManager, ChainMonitor, Router, async signer, persistence. USE WHEN: embedding Lightning into mobile/desktop apps, building custom Lightning logic, scaling beyond LND-style daemon.
Как установить скилл lightning-ldk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightning-ldk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic