bitcoin-libraries-ldk
БесплатноБез исполняемых скриптовНе проверенLightning Dev Kit (LDK): modular Rust crates for embedding Lightning in apps. ldk-node for opinionated quick-start. Bindings to Swift / Kotlin / Python. USE…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
LDK (Lightning Dev Kit)
Modular Rust library for Lightning. Used by Cash App, Casa, ldk-node, more. Mutiny Wallet was a prominent early user; the shutdown was announced 2024-08-05 and the hosted wallet closed 2024-12-31. Its repos took their last commits in September 2024 and are archived today, so treat Mutiny references below as history, not as a live deployment.
See full overview at ../../lightning/ldk/SKILL.md.
Crates
lightning— core protocol logic.lightning-net-tokio— async TCP transport.lightning-persister— file persistence.lightning-background-processor— task driver.lightning-block-sync— chain sync via bitcoind RPC.lightning-transaction-sync— chain sync via Esplora / Electrum.lightning-rapid-gossip-sync— fast initial gossip.lightning-invoice— BOLT11 invoice handling.ldk-node— opinionated bundled crate.lightning-liquidity— LSP client/server.
Release lines (as of September 2026)
lightningand the sibling core crates — 0.2.6 (2026-09-09). LDK 0.1 (January 2025) was the API-stabilisation milestone; since then the project ships features in minor releases and backports fixes as patch releases on older minor lines.lightning-invoice— 0.34.1 (June 2026).ldk-node— 0.7.0 (2025-12-03), which depends on thelightning0.2 line.maincarries an unreleased 0.8.0.- Next major:
lightning0.3.0-rc1 andlightning-invoice0.35.0-rc1, both published 2026-08-31. No stable 0.3 yet.
ldk-node 0.7.0 added experimental channel splicing, async payments (serving and paying static invoices), a Bitcoin Core REST chain source, and persisted liquidity-service state.
ldk-node quickstart
[dependencies]
ldk-node = "0.7"
use ldk_node::Builder;
use ldk_node::bitcoin::Network;
use ldk_node::lightning_invoice::{Bolt11InvoiceDescription, Description};
let mut builder = Builder::new();
builder.set_network(Network::Bitcoin);
builder.set_chain_source_esplora(
"https://mempool.space/api".to_string(), None);
builder.set_storage_dir_path("/path/to/data".to_string());
let node = builder.build()?;
node.start()?;
let description = Bolt11InvoiceDescription::Direct(
Description::new("Test".to_string())?);
let invoice = node.bolt11_payment().receive(
100_000, // 100k msat
&description, 3600,
)?;
Builder setters take &mut self, so build the builder in a let mut binding rather than chaining off a temporary. Network is
re-exported as ldk_node::bitcoin::Network, not ldk_node::Network.
Bindings (as of September 2026)
Two separate binding families exist and are not interchangeable:
ldk-node 0.7.0 ships UniFFI bindings for Swift, Kotlin and Python
(plus community Flutter bindings), while an older family is generated
directly over the raw lightning crate on top of ldk-c-bindings.
Each entry below says which family it belongs to.
- ldk-swift — iOS/macOS, generated over raw
lightning, not over ldk-node; the SwiftPM product is namedLightningDevKit. Not archived, but no release or commit since 0.0.125 (2025-02-27), so it is still on the pre-0.10.0.xline and does not tracklightning0.2. - ldk-garbagecollected — Java, C# and TypeScript over raw
lightning. Java ships asorg.lightningdevkit:ldk-java0.2.5.0 on Maven Central and TypeScript/WASM as the npmlightningdevkitpackage 0.2.5-0, both published 2026-09-01. There is no separate Kotlin/Android binding over rawlightning— Android consumers use the Java bindings. - ldk-node-jvm / ldk-node-android — ldk-node's UniFFI Kotlin bindings, both 0.7.0 on Maven Central (2025-12-03).
- ldk-node-flutter — Flutter over ldk-node, maintained by LtbLightning.
lightningdevkit/ldk-nodejs — an older Node.js binding — is archived
and took its last commit in May 2022. The maintained JS/WASM path is
the lightningdevkit npm package above, which wraps raw lightning;
there is still no ldk-node WASM/JS binding.
Use cases
- Mobile Lightning wallets.
- Browser-based LN — Mutiny compiled
lightningto WASM before shutting down in 2024; the pattern is still viable, but there is no maintained ldk-node WASM/JS binding to build on. - Custom backend services with Lightning embedded.
Compared
See ../../lightning/ldk/SKILL.md for LND/CLN comparison and full feature matrix.
Version floor and security history (as of September 2026)
- 0.2.6 (2026-09-09) is the floor on the 0.2 line. It fixes a
denial-of-service where a bogus HTLC that is immediately rejected,
after a second HTLC with the same
payment_hashwas already forwarded, could leave theChannelManagerunreadable on deserialization; and a fee-inflation bug letting a malicious splice counterparty make us over-allocate fee into their output when we contribute to a splice. - 0.2.5 and 0.1.12 (both 2026-08-05) fixed an on-chain funds-theft vuln
Установить bitcoin-libraries-ldk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл bitcoin-libraries-ldk?
Lightning Dev Kit (LDK): modular Rust crates for embedding Lightning in apps. ldk-node for opinionated quick-start. Bindings to Swift / Kotlin / Python. USE WHEN: embedding Lightning in mobile/desktop apps, building custom LN logic.
Как установить скилл bitcoin-libraries-ldk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bitcoin-libraries-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