0.1.0 - first public release
A Swift framework for Bitcoin consensus validation, with the option to embed a full Bitcoin node in-process.
What's included
BitcoinKernelproduct — wraps Bitcoin Core'slibbitcoinkernelfor consensus validation without a daemonBitcoinproduct — embedsbitcoindin-process via a typedBitcoinConfigbuilder andDaemonlifecycle- Async/await
RPCClientcovering all 171 Bitcoin Core v31.0 JSON-RPCs - Pluggable RPC transports: direct in-process, HTTP, cookie-file, or auto-detect
BlockchainSyncengine andBlockSourceprotocol for custom block providers- KVO-observable
Foundation.Progressfor SwiftUI andBGContinuedProcessingTask - Tor support via SOCKS5-configured
URLSession - Optional
walletpackage trait for Bitcoin Core's wallet RPCs
Platforms
macOS 15+, iOS 18+, visionOS 2+, and tvOS 18+ (BitcoinKernel only — the Bitcoin product depends on execvp(), marked __TVOS_PROHIBITED). Swift 6.3 / Xcode 26.4+.
Installation
.package(url: "https://github.com/21-DOT-DEV/swift-bitcoinkernel.git", exact: "0.1.0"),See the README for full install and usage examples.
Caution
Pre-1.0 (SemVer 0.y.z) — the public API may change at any release; pin with exact:. Mainnet operations move real value; test on regtest or signet first.
Full Changelog: https://github.com/21-DOT-DEV/swift-bitcoinkernel/commits/0.1.0