bmc Bitcoin Machine Code v0.2.1 · Core v32.1 Parity
GitHub
Hand-Authored Assembly (x86-64 NASM & AArch64) + Shared C

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, cluster mempool policy, BIP324 encrypted transport, native Esplora/REST/ZMQ, and a 483-command static & dynamic test gate.

Experimental Software Notice
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 Core for custody.
3h 17m 55s
Mainnet IBD + all indexes (vs Core v31.1 9h 50m 04s — 3.0× faster)
20.2 µs / 22.3 µs
Per-core ECDSA / BIP340 Schnorr verify (level with libsecp256k1)
162 RPCs
Core v32.1 JSON-RPC + REST + in-process Esplora + native ZMTP 3.1
100% MuHash
UTXO set MuHash3072 identical to Core from genesis to tip
483 Tests
Gated verification suite + ABI, callee-saved, ASan/UBSan & Core flag checks
248.70B+ Fuzz
36.44B+ Core v32.1 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 →).

bmc-gui Overview screen showing watch-only vault balance, mainnet sync progress, live fee estimates, and recent transactions
Overview — Watch-only balance, mempool unconfirmed funds, live estimatesmartfee, and USB hardware signer status. Details →
bmc-gui Receive and QR screen showing BIP84 address, BIP21 QR code, and hardware wallet verification
Receive & QR — Non-reusing BIP44/49/84/86 addresses, native BIP21 QR code, and walletdisplayaddress device verification. Details →
bmc-gui Send and Coin Control screen with Taproot address validation and manual UTXO selection
Send & Coin Control — Live Taproot/SegWit address validation, fee presets, PSBT v0/v2 selector, and manual UTXO Coin Control. Details →
bmc-gui Hardware Signer and PSBT Workbench showing Coldcard Mk4 HWI signer and decoded PSBT
Hardware & PSBT Workbench — USB HWI signtx, air-gapped .psbt/QR export, decode/analyze, combine, finalize, and broadcast. Details →
bmc-gui Wallets, Descriptors and Blockchain Rescan screen with height presets
Wallets & Rescan — Watch-only descriptor import, 1-click rescan height presets, and live scan progress. Details →
bmc-gui Node and Connection screen showing local cookie settings, BIP324 v2 peers, and synced indexes
Node & Connection — Saved .cookie / RPC config, BIP324 v2 encrypted peers, and all 5 zero-delay indexes. Details →

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.

Serve Parent Process • JSON-RPC / REST (intake + exec pool) • Esplora Facade (fixed worker pool) • Inbound P2P Listener (IPv4/v6/Tor/I2P) • Forks isolated per-peer inbound children Shared Memory (IPC Plane) • node_status_t (peers, tips, submit/ctl) • Shared Mempool + Policy State (robust lock) • ZMQ Event Rings (hash/raw/sequence) • Read-only UTXO LSM snapshots Download & Apply Worker • Outbound P2P Mux + BIP152/BIP324 • Parallel Script Verify Pool (-par) • Single Writer: Archive + UTXO + Mempool • Native ZMTP 3.1 Publisher Thread Parallel IBD Workers • 10 chunk workers (16-blk) • Monotonic archive committer • Core 1,024-block window Async UTXO Writers • Forked memtable flush (B3) • Background leveled compact • Atomic manifest swap Coinstats Fold Worker • Incremental MuHash3072 • AVX2 keystream + safegcd • Persists coinstats.dat Trailing Index Builders • txindex & txospender • BIP158 blockfilterindex • addr_hist (Esplora)

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 with sha256sum -c SHA256SUMS.txt (or shasum -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

DocumentScope
docs/releases/v0.2.0.mdOfficial v0.2.0 release notes: native Rust bmc-gui, P0 custody/HWI PSBT fixes, continuous fuzzing milestones, and download matrix
gui/README.mdPure native cross-platform Rust desktop GUI (egui/eframe) for watch-only + hardware signer (PSBT/HWI) and hot wallets (screenshots & guide)
docs/audits/FUZZING_ATTESTATION.mdDated cumulative fuzzing ledger (248.70B+ executions, 36.44B+ in-process Core v31.1 differential script checks, 0 mismatches; web edition)
fuzz/README.mdGuard-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.mdFull honest technical assessment vs Bitcoin Core v31.1, codebase health, barriers to legitimacy & viability roadmap (web edition)
docs/audits/REMEDIATION_REPORT_2026-11-27.mdComplete release-ready remediation report for the 2026-11-27 full code audit (Wave 1 + Wave 2)
docs/audits/CODE_AUDIT_2026-11-27.mdOriginal 8-track static code audit report and finding inventory
docs/ENGINEERING.mdInternal architecture, binary layouts, on-disk formats, and build/validation gates
docs/OPERATIONS.mdRunning, monitoring, upgrading, pruning, backup, and disaster recovery runbooks
docs/RPC_LIVE_NODE.mdEmbedded JSON-RPC server design, concurrency lanes, and per-method notes
docs/PARITY_ATTESTATION.mdDated MuHash3072 UTXO parity attestations against Bitcoin Core v31.1
docs/reports/2026-10-06-core-vs-bmc-performance-release.mdHead-to-head IBD, serving latency, memory, and disk release benchmark report
port/OSX_STATE.md & port/WIN_STATE.mdmacOS Apple Silicon and Windows x86-64 port status, roadmaps, and test gates