Bitcoin Machine Code (bmc)
A full validating Bitcoin node built from scratch in assembly and C for Linux x86-64, macOS Apple Silicon (ARM64), and Windows x86-64. Verified differentially against Bitcoin Core v32.1 with byte-identical UTXO set MuHash3072 digests, optional libbitcoinkernel shadow/primary consensus (--consensus-engine=bmc|dual|kernel), BMCWENC2 ChaCha20-Poly1305 AEAD wallet encryption, cluster mempool policy, BIP324 encrypted transport, native Esplora/REST/ZMQ, bit-identical reproducible builds, and a 491-command static & dynamic test gate.
bmc is 100% AI-authored software verified differentially against Bitcoin Core v31.1 and hardened across multiple security audits and formal verification tracks, including the comprehensive 2026-11-27 audit remediation. It has not received an independent human audit of its consensus and cryptographic assembly. Run it for research, benchmarking, and evaluation without holding production funds; use
Bitcoin Corefor custody.
EvalScript diff checks · 0 crashes / 0 mismatches
Key Capabilities
Consensus & Cryptography
Full validation from genesis: Legacy, P2SH, SegWit v0 (BIP141/143/144), Taproot key-path & script-path (BIP340/341/342), CSV/CLTV/NULLDUMMY, BIP30, BIP94 testnet4 timewarp, and BIP325 Signet. Script activation flags are auto-generated directly from Bitcoin Core v31.1 source. Hand-written secp256k1 assembly uses constant-time complete formulas, safegcd inversion, and GLV wNAF.
Custom LSM UTXO Engine & Archive
Append-only framed block archive (blk*.dat, packed rev*.dat undo for full-chain reorgs, index.dat, headers.dat, chainwork.dat) paired with a crash-consistent LSM UTXO store featuring bounded memtables, async forked flushes, Bloom-filtered sorted runs, leveled compaction, and optional pread low-memory mode.
Core v31.1 Cluster Mempool
Shared cross-process mempool with optimal cluster linearization (64 tx / 101 kvB), full RBF with feerate-diagram verification, TRUC (BIP431 v3), ephemeral dust, atomic submitpackage & 1p1c package relay, Core-format mempool.dat, and a byte-identical port of Core's block-policy fee estimator (estimatesmartfee).
P2P & Privacy Networks
Native IPv4, IPv6, Tor v3 (ephemeral onion service + SAFECOOKIE + per-connection stream isolation), I2P (SAM 3.1), and CJDNS. Full BIP324 v2 encrypted transport with v1 fallback, BIP152 compact blocks in both directions, BIP155 addrv2, BIP157/158 compact block filters, BIP339 wtxidrelay, and ASMap bucketing.
Native Desktop GUI, Hardware PSBT & Wallet
Pure native Rust bmc-gui (egui/ eframe — zero WebView/JS) for macOS, Linux, and Windows with BIP21 QR codes, Coin Control, Watch-Only descriptor vaults, USB HWI hardware signing (signtx), standard BIP44/49/84/86 derivation, live reorg-safe wallet catch-up, Miniscript (97/97 Core vectors), PSBT v0/v2, and MuSig2.
Zero-Delay Indexes & Esplora
txindex, txospenderindex, coinstatsindex (incremental MuHash), blockfilterindex, and native addrindex are built as sorted runs + bounded tails during IBD. An in-process Esplora facade (bmc.esploraport) powers an unpatched mempool.space instance directly.
Native Desktop GUI (bmc-gui)
Bundled in all v0.2.0 release archives for macOS Apple Silicon, Linux x86-64, and Windows x86-64: a pure native Rust egui/ eframe desktop wallet and node console (~4.8 MB stripped, zero Electron/WebView) designed for Watch-Only + Hardware Signer (PSBT/HWI) workflows. Switch tabs below or click any screenshot to zoom (full walkthrough →).
System Process Topology
bmcbitcoind separates untrusted network I/O, RPC serving, block downloading, UTXO flushing, and index generation across cooperating OS processes communicating through shared memory rings, atomic file renames, and bounded IPC pipes.
Prebuilt v0.2.0 Releases & Multi-Platform Builds
Official v0.2.0 release archives (wire identity /BitcoinMachineCode:0.2.0/) are automatically built, verified, and checksummed by GitHub Actions (.github/workflows/release.yml) for all three native platforms from a single main tree. Each archive bundles bmcbitcoind, bmc-gui (native Rust desktop app), bmc_cli, bmc_wallet_cli, all 5 runtime index helpers, config/bitcoin.sample.conf, README.md, and LICENSE.
| Platform | v0.2.0 Release Download (Node + GUI) | Assembly Backend | Build & Test From Source | |---|---|---|---| | Linux x86-64 (Primary) | bmc-v0.2.0-linux-x86_64.tar.gz | NASM ELF64 ( asm/*.asm , SysV ABI, optional SHA-NI / AVX2 / CUDA) | make -C asm runtime cd gui && cargo build --release | | macOS Apple Silicon (Darwin ARM64) | bmc-v0.2.0-macos-arm64.tar.gz | AArch64 Mach-O ( port/osx/*.S , libc-linked,F_FULLFSYNC ) | port/osx/build_daemon.sh cd gui && cargo build --release | | Windows 10/11 x86-64 | bmc-v0.2.0-windows-x86_64.zip | Same asm/*.asm (-f win64 ) +port/win/winsys/ Linux syscall layer | python port\win\build.py daemon:bmcbitcoind cd gui && cargo build --release | | Checksums | SHA256SUMS.txt — verify withsha256sum -c SHA256SUMS.txt (orshasum -a 256 -c SHA256SUMS.txt on macOS) | | |
Quick Start
1. Build & Configure (Linux x86-64)
git clone https://github.com/BobClawblaw/bitcoinmachinecode.git
cd bitcoinmachinecode
make -C asm runtime
cp config/bitcoin.sample.conf /path/to/datadir/bitcoin.conf
2. Run the Node
# Production serve mode: P2P sync, UTXO validation, inbound serving, RPC
asm/daemon/bmcbitcoind serve /path/to/datadir
# Query over JSON-RPC using automatic 0600 cookie auth
asm/daemon/bmc_cli -datadir=/path/to/datadir getblockchaininfo
asm/daemon/bmc_cli -datadir=/path/to/datadir getnetworkinfo
asm/daemon/bmc_cli -datadir=/path/to/datadir getmempoolinfo
3. Run under systemd
[Unit]
Description=Bitcoin Machine Code daemon
After=network-online.target
[Service]
User=bitcoin
WorkingDirectory=/path/to/repo/asm
ExecStart=/path/to/repo/asm/daemon/bmcbitcoind.live serve /path/to/datadir
Restart=on-failure
KillSignal=SIGTERM
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Datadir Layout
Every chain runs in its own isolated subdirectory (including main/), never colliding with Bitcoin Core filenames:
<datadir>/
bitcoin.conf Shared configuration (optional; supports [main]/[signet]/[testnet4]/[regtest])
main/ Per-chain state directory
blk*.dat rev*.dat Framed block archive + packed full-chain undo data
index.dat headers.dat chainwork.dat
utxo.dat utxo_run_*.dat LSM UTXO WAL, Bloom-filtered sorted runs, atomic manifest
utxo_manifest.dat
txindex.* txospender.* Sorted index runs + bounded live tails (built during IBD)
bfilters.* coinstats.* addr_hist.*
peers2.dat banlist.json BIP155 multi-network address book + persistent bans
mempool.dat fee_estimates.dat Core-format mempool + block-policy fee estimator state
bmcwallet.enc / wallets/ Encrypted HD wallet store & tx journal
.cookie 0600 ephemeral RPC credential (deleted on clean shutdown)
debug.log Leveled daemon log
Repository Documentation Map
| Document | Scope | |---|---| | docs/releases/v0.2.0.md | Official v0.2.0 release notes: native Rustbmc-gui , P0 custody/HWI PSBT fixes, continuous fuzzing milestones, and download matrix | | gui/README.md | Pure native cross-platform Rust desktop GUI ( egui /eframe ) for watch-only + hardware signer (PSBT/HWI) and hot wallets (screenshots & guide ) | | docs/audits/FUZZING_ATTESTATION.md | Dated cumulative fuzzing ledger (916.93B+ executions, 119.26B+ in-process Core v31.1 differential script checks, 0 mismatches; web edition ) | | fuzz/README.md | Guard-paged assembly fuzzers, ASan/UBSan C fuzzers, in-process Core v31.1 differential fuzzer (2.13M exec/s), atomic fuzz_stats.json ledger, and 24/7 systemd service | | docs/reports/PROJECT_ASSESSMENT_2026-11-27.md | Full honest technical assessment vs Bitcoin Core v31.1, codebase health, barriers to legitimacy & viability roadmap ( web edition ) | | docs/audits/REMEDIATION_REPORT_2026-11-27.md | Complete release-ready remediation report for the 2026-11-27 full code audit (Wave 1 + Wave 2) | | docs/audits/CODE_AUDIT_2026-11-27.md | Original 8-track static code audit report and finding inventory | | docs/ENGINEERING.md | Internal architecture, binary layouts, on-disk formats, and build/validation gates | | docs/OPERATIONS.md | Running, monitoring, upgrading, pruning, backup, and disaster recovery runbooks | | docs/RPC_LIVE_NODE.md | Embedded JSON-RPC server design, concurrency lanes, and per-method notes | | docs/PARITY_ATTESTATION.md | Dated MuHash3072 UTXO parity attestations against Bitcoin Core v31.1 | | docs/reports/2026-10-06-core-vs-bmc-performance-release.md | Head-to-head IBD, serving latency, memory, and disk release benchmark report | | port/OSX_STATE.md &port/WIN_STATE.md | macOS Apple Silicon and Windows x86-64 port status, roadmaps, and test gates |