Full Technical Assessment & Viability Analysis
An honest, evidence-backed engineering review of Bitcoin Machine Code (bmc) versus
Bitcoin Core v31.1 as of v0.2.0 (2026-11-28, post-PR #511, assembly-first hardening wave, P0 wallet custody fixes & native Rust bmc-gui).
Full Markdown source: docs/reports/PROJECT_ASSESSMENT_2026-11-27.md.
bmc is one of the most technically ambitious alternative Bitcoin full nodes ever constructed—and a remarkable demonstration of AI-authored systems engineering—but it is NOT a legitimate production custody or economic-validation replacement for Bitcoin Core today.
It beats Core v31.1 decisively on raw IBD speed (3.0× faster with all indexes), archive monotonicity, and single-binary explorer serving (unpatched mempool.space via native Esplora + addrindex), with a byte-identical MuHash3072 UTXO digest from genesis. Yet its 97,551 LOC of hand-written dual-architecture assembly, 14,680-LOC main.c monolith, zero independent human audits, early-stage fuzzing depth (havoc-mutated rather than years of coverage-guided OSS-Fuzz; see Continuous Fuzzing), and consensus-split asymmetry create structural risks that bug-fixing alone cannot close.
Honest Scorecard (bmc vs. Bitcoin Core v31.1)
| Dimension | bmc | Bitcoin Core v31.1 | Verdict |
|---|---|---|---|
| Mainnet IBD Speed (with indexes) | 9.5 / 10 (3h 17m) | 6.0 / 10 (9h 50m) | bmc 3.0× faster |
| Indexing & Explorer Backend | 9.0 / 10 (zero-delay + native Esplora) | 5.5 / 10 (LevelDB + external electrs/fulcrum) | bmc decisively better |
| Single-Core Crypto Speed | 8.5 / 10 (libsecp256k1 speed, 6× MuHash) | 9.0 / 10 (libsecp256k1 + audited C++) | Near parity (Core assurance) |
| Consensus Parity & Safety | 5.0 / 10 (MuHash-matched, dual-asm risk) | 10.0 / 10 (de facto consensus spec) | Core decisively better |
| Memory Safety & Attack Surface | 3.5 / 10 (97.5k LOC asm + raw C) | 8.5 / 10 (RAII C++, 15+ yr, OSS-Fuzz) | Core decisively better |
| Codebase Maintainability | 4.5 / 10 (14.7k main.c, 3× arch ports) | 8.0 / 10 (modular C++, libbitcoinkernel) | Core decisively better |
| Disk & RAM Efficiency | 5.5 / 10 (1.31 TB; 56.3 GB peak PSS) | 8.5 / 10 (918 GB; ~9–10 GB RAM) | Core decisively better |
| RPC Concurrency & Tail Latency | 6.0 / 10 (fast point RPCs; g_exec_lock; p99 unmeasured) | 8.5 / 10 (fine-grained locks under load) | Core better |
| Wallet Security & Ecosystem | 4.0 / 10 (AES-CBC non-AEAD, custom format) | 9.0 / 10 (SQLite descriptor wallets) | Core decisively better |
| Supply Chain, Audits & Governance | 2.5 / 10 (0 human audits, no Guix, bus factor 1) | 9.5 / 10 (Guix, GPG quorum, CVE process) | Core decisively better |
1. Codebase Anatomy & Engineering Health
Direct measurement of main (3,829 commits) shows a substantial systems engineering codebase rather than a prototype—alongside acute monolith concentration and duplicated multi-architecture assembly.
Supporting verification code totals another ~179,952 LOC: asm/tests/* (643 files, 140,056 LOC),
validation/* Core oracles (122 files, 22,571 LOC), formal/* narrow formal proofs (125 files, 12,721 LOC),
and scripts/* static auditors (20 files, 4,604 LOC).
Monolith Concentration
Nearly 60,000 LOC—over a quarter of all production code—is concentrated in just 11 files:
| Source File | LOC | Primary Architectural Concern |
|---|---|---|
asm/daemon/main.c | 14,680 | Boot, config, process supervision, IBD coordination, peer loops, and shutdown entangled in one file |
asm/rpc_chain.c | 6,385 | Block/tx parsing, script disassembly, UTXO/index lookups, and JSON serialization combined |
asm/bitcoin_utxo_lsm.asm | 5,498 | Complex on-disk LSM manifest, WAL, Bloom filter, run lookup, and compaction in raw x86-64 asm |
asm/rpc_commands.c | 5,467 | Raw transactions, PSBT decode/sign, descriptors, and mempool RPCs in one translation unit |
asm/daemon/utxo_live.c | 5,126 | Consensus block connect/disconnect, contextual checks, reorg handling, and undo management |
asm/bitcoin_mempool_policy.c | 4,568 | Cluster linearization, RBF feerate diagrams, TRUC, ephemeral dust, and eviction policy |
asm/rpc_node.c | 4,547 | P2P, network, mining, banlist, and live-node mempool RPCs |
asm/rpc_wallet_ops.c | 4,529 | Wallet lifecycle, HD keys, signing, coin selection, and backup paths |
asm/bitcoin_interp.asm + port/osx/bitcoin_interp.S | 3,679 + 3,104 | Two parallel hand-written assembly implementations of the full Script + Tapscript VM |
port/osx/bitcoin_utxo_lsm.S | 3,560 | Parallel AArch64 hand-written re-implementation of the LSM UTXO engine |
Genuinely Disciplined Practices
- Automated static gatekeepers: SysV ABI stack & callee-saved auditors (482 fns), Makefile prereq (629 rules) / runlist (487 tests) / link-check / gate-log auditors.
- Core source codegen: Script flags and exception hashes generated directly from Bitcoin Core v31.1 source.
- End-to-end MuHash attestation: Full-chain genesis syncs checked against Core's MuHash3072 digest.
- Candid documentation: Incident logs (
LOG.md), explicit “What we have NOT measured” sections, and tracked divergence registers.
Structural Brittleness
- 7+ duplicated binary parsers: Transaction and CompactSize parsing is hand-rolled across C and asm, repeatedly causing pointer-wrap/bounds bugs (
H-05,H-07,CRIT-01,CRIT-05). - Asymmetric arch tooling (partially closed in
v0.1.0):scripts/arm64_abi_audit.pynow audits all 50port/osx/*.Sfiles for SP alignment and Darwinsvc #0x80carry-flag checks, though broader cross-arch fuzz parity remains ongoing. - Global
.bssstate acrossfork(): Repeatedly caused data races (H-16,H-18,MED-10) and post-fork thread-pool hazards (MED-02).
2. Where bmc Is Genuinely Better Than Bitcoin Core v31.1
- 3.0× faster mainnet IBD with all indexes: Run 46 completed mainnet sync with
txindex+coinstatsindex+blockfilterindexin 3h 17m 55s (7h 13m CPU) vs Core v31.1 Rerun #7's 9h 50m 04s (13h 15m CPU) on identical Ryzen 9 9950X3D NVMe hardware (dbcache=8192,assumevalid=938343), MuHash3072-identical at height 970,710. Full-script sync (assumevalid=0) finished in 8h 00m. - Zero-delay sorted-run indexes & native Esplora: Every optional index (
txindex,txospenderindex,coinstatsindex,blockfilterindex, and nativeaddrindex) builds asynchronously during IBD.txindexis 2.6× smaller than Core's LevelDB (26.9 GB vs 68.8 GB). The in-process Esplora facade powers an unpatchedmempool.spaceinstance with noelectrsorfulcrumdaemon. - Strictly monotonic, hole-free block archive: Parallel download workers stage verified 16-block chunks and one committer appends
blk*.datstrictly in height order (unlike Core's arrival-orderblk*.dat), delivering sequential read patterns and cleaner pruning. - Zero third-party runtime dependencies & fast point RPCs: No Boost, LevelDB, libevent, libzmq (native ZMTP 3.1), or SQLite.
getblockis 1.7× faster (3 ms vs 5 ms v1; 31 ms vs 53 ms v2),getchaintipsis 48× faster (2 ms vs 97 ms), Base58 is 7.9× faster, AVX2 MuHash insert is 6× faster, and hand-writtensecp256k1matcheslibsecp256k1(20.2 µs ECDSA / 22.3 µs BIP340). - Process-level fault isolation & build provenance: Untrusted inbound peers execute in forked child processes; RPC, download/apply, async UTXO flushers, coinstats fold, and index builders are isolated OS processes;
getnetworkinfoexposesbmc_build_commitandbmc_build_dirtynatively.
3. Where bmc Is Genuinely Worse Than Bitcoin Core v31.1
- Order-of-magnitude larger memory-safety attack surface: 97,551 LOC of hand-written assembly + 112,214 LOC of raw C directly on untrusted P2P, script, and RPC boundaries. Even after four earlier audits (Aug–Oct 2026) and narrow formal proofs, the 2026-11-27 audit still uncovered 15 CRITICAL (including unauthenticated remote
.bssoverflow ingetblocktxn, heap overflow inscript_asm(), stack overflows incons_verify/node_fetch_headers, and a P2TR/P2WSH zero-length address burn bug) and 40 HIGH defects. Core's RAII C++ (Span,DataStream,CScript), 15+ years of adversarial exposure, and continuous OSS-Fuzz represent a fundamentally safer baseline. - 3× cross-architecture maintenance & consensus-drift tax: Mirroring consensus, P2P, and storage changes across x86-64 NASM, AArch64 Mach-O, and Windows NT syscall emulation already produced ARM64-only security/consensus bugs (
CRIT-04,CRIT-07,H-07,H-15) and compounds on every protocol upgrade. - Higher disk & RAM footprint: Total datadir with full indexes is 1,312.4 GB vs Core's 917.7 GB (+43%);
rev*.datundo is 2.5× larger (246.6 GB vs 100.0 GB) to make address-history rebuilds self-contained. DefaultmmapLSM mode peaked at 56.3 GB PSS in Run 46; low-memorypread+dropappendslowers PSS to 22.1 GB (still >2× Core's ~9–10 GB) at the cost of slowing IBD from 3h 17m to 5h 52m (4.4× slower lookups). - POSIX
fork()fragility: Forking from a stateful/threaded daemon repeatedly triggered subtle bugs (SIGCHLD=SIG_IGNbreakingwaitpid()inCRIT-14/CRIT-15, leaked listener FDs inH-11, post-fork thread-pool deadlock risk inMED-02, plus Windows NTfork()emulation overhead). - Coarse RPC locking & unmeasured tail latency: Non-lane RPCs serialize on exclusive
g_exec_lock; sustained concurrent p95/p99 RPC latency is unmeasured, and cold-cachegetaddressbalanceexhibited a 60× spread (40 s cold vs 0.6 s warm). - Wallet, ZMQ & feature gaps:
BMCWENC1wallet encryption is non-AEAD AES-256-CBC and incompatible with Core's SQLite descriptor wallets; noloadtxoutset(assumeutxo); ZMQhashtx/rawtxomits non-mempool block-connected and disconnected txs;TrimToSizeevicts per-leaf rather than by linearization chunk;getrawmempoolreports raw blob bytes instead ofDynamicMemoryUsage; no GUI or per-methodhelp <cmd>text.
4. Side-by-Side Technical Matrix
| Category | Bitcoin Machine Code (bmc) | Bitcoin Core v31.1 | Advantage |
|---|---|---|---|
| Implementation | 97.5k LOC asm (x86-64 + ARM64) + 112k C + 16k Win shims | C++20 (+ libsecp256k1 C/asm) | Core (safety) |
| Runtime Dependencies | None (native ZMTP 3.1, custom LSM, custom HTTP/JSON) | LevelDB, libevent, SQLite, libzmq (opt), Qt (opt) | bmc |
| Mainnet IBD + Indexes | 3h 17m 55s (7h 13m CPU) | 9h 50m 04s (13h 15m CPU) | bmc (3.0×) |
| Block Archive Layout | Height-monotonic, hole-free blk*.dat | Arrival-order blk*.dat | bmc |
| Secondary Indexes | Built during IBD; txindex 26.9 GB + addrindex + Esplora | Post-connect; txindex 68.8 GB; no Esplora/addrindex | bmc |
| Total Disk (Full + Indexes) | 1,312.4 GB (rev*.dat 246.6 GB) | 917.7 GB (rev*.dat 100.0 GB) | Core (-30%) |
| Peak RAM During IBD | 56.3 GB PSS (mmap) / 22.1 GB (pread) | ~9–10 GB (dbcache=8192) | Core |
| Single-Core Sig Verify | 20.2 µs ECDSA / 22.3 µs BIP340 | 21.0 µs ECDSA / 22.0 µs BIP340 | Tie |
| Consensus Assurance | MuHash-matched; dual-asm consensus; 0 human audits | De facto spec; 15+ yr battle-tested; libbitcoinkernel | Core |
| Fuzzing & QA | 483 deterministic/diff tests + ASan/UBSan + 7-target guard-paged/Core-diff fuzzing (248.70B+ execs, 36.44B+ Core diff) + CI | Unit/functional + 24/7 OSS-Fuzz (billions of inputs) | Core (years of OSS-Fuzz) |
| Wallet & Custody | Watch-only + HWI hardware signer (PSBT) & native Rust bmc-gui; hot wallet experimental (AES-CBC, young code) | Audited SQLite descriptor wallet + broad tooling | Core |
| Release & Supply Chain | Tagged v0.2.0 3-platform CI archives (Node + GUI) + SHA256SUMS; no Guix or GPG quorum yet | Guix reproducible builds, GPG quorum, CVE process | Core |
5. The Six Barriers to Becoming a Legitimate Bitcoin Client
Closing individual audit findings is necessary, but not sufficient. Six structural barriers separate bmc from being a legitimate alternative production Bitcoin client:
1. Consensus Risk Asymmetry (Chain Splits)
A single subtle edge-case divergence in script flags, DER/witness validation, sigop weighting, Tapscript limits, or reorg tie-breaking splits miners, exchanges, and users onto an invalid fork. Maintaining two separate hand-written assembly consensus engines (x86-64 and ARM64) multiplies that risk rather than containing it.
2. Zero Human Audit & Bus Factor = 1
100% of the ~227k LOC production codebase is AI-authored and AI-audited. Differential tests prove parity only on observed history and known vectors—they cannot rule out adversarial exploits on unseen mainnet inputs or microarchitectural side-channels in crypto assembly.
3. Early-Stage Coverage-Guided Fuzzing Depth
v0.2.0 runs a 24/7 7-target guard-paged & Core v31.1 differential fuzzing suite (248.70B+ havoc mutations, 36.44B+ Core diff checks logged), but Bitcoin Core's P2P hardness relies on years of coverage-guided OSS-Fuzz / libFuzzer / qa-assets probing every parser, compact block, PSBT, BIP324 stream, and storage record.
4. No Reproducible Builds or Release Governance
Production Bitcoin clients require deterministic Guix/Nix reproducible builds, semantic tagged releases, multi-maintainer GPG signatures, independent peer review quorums, and a mature CVE disclosure workflow. bmc currently ships as rolling main commits.
5. Assembly Tooling & C Monoliths
Keeping the core engine in hand-authored assembly is bmc's defining mission, but maintaining ~97.5k LOC across two architectures without checked assembly cursor macros, single-source spec codegen, an automated AArch64 ABI/syscall auditor, and decomposed C modules (breaking up 14,680-LOC main.c) creates a steep review wall.
6. Ecosystem & Operational Maturity
Lightning nodes (LND/CLN/LDK), exchanges, and hardware bridges rely on exact Core ZMQ block-tx events, predictable RAM on 8–16 GB VPS hosts, measured p99 RPC latency under load, SQLite descriptor wallet portability, and multi-year unattended uptime.
6. Honest Viability Matrix by Use Case
| Use Case | Status Today | Practical Guidance |
|---|---|---|
| Personal / Institutional Custody (Built-in Wallet) | NOT VIABLE | Do not hold real funds in bmc's wallet. Use Bitcoin Core + audited hardware signers. |
| Mining / Exchange Economic Settlement | NOT VIABLE | Do not use as sole consensus validator without libbitcoinkernel or independent human audits. |
Block Explorer / mempool.space Backend | HIGHLY VIABLE | Strong fit today: 3× faster IBD, 2.6× smaller txindex, native addrindex + Esplora in one binary. Cross-check tip hash/MuHash against a Core node. |
| Chain Analytics & Archival Research | HIGHLY VIABLE | Monotonic hole-free blk*.dat, fast getblock, full-chain undo, and 3h 17m from-genesis syncs accelerate research workflows dramatically. |
| Differential Consensus Fuzzing Oracle | HIGHLY VIABLE | An independent from-scratch implementation with genesis-to-tip MuHash parity is a valuable differential testing counterpart to Core. |
| Systems / AI Engineering Reference | EXCEPTIONAL | Demonstrates how much IBD and indexing performance is left on the table by legacy LevelDB + sequential-index architectures. |
7. Concrete 4-Phase Roadmap to Production Legitimacy
Turning bmc from an impressive experimental benchmark node into a trusted alternative Bitcoin client requires halting feature sprawl and executing four structural engineering phases:
| Phase | Horizon | Concrete Structural Deliverables |
|---|---|---|
| Phase 1: Assembly-Native Hardening & Shadow Consensus | Months 1–4 IN PROGRESS (v0.1.0) |
Keep the core engine in hand-authored assembly while eliminating structural bug classes mechanically: shipped in v0.1.0 — checked cursor/bounds macros (asm/macros_safe.inc, port/osx/macros_safe.inc), automated AArch64 ABI & Darwin syscall auditor (scripts/arm64_abi_audit.py), and single-source consensus spec codegen (scripts/gen_consensus_inc.py). Remaining: adopt safe cursor macros across all 7+ parsers and add selectable --consensus-engine=bmc|dual|kernel via libbitcoinkernel for 24/7 live mainnet shadow validation. |
| Phase 2: Continuous Adversarial Fuzzing (Asm + C + Core Diff) | Months 1–6 (Ongoing) LIVE (v0.1.0) |
Shipped in v0.1.0: 7-target guard-paged PROT_NONE assembly + ASan/UBSan C fuzz suite (fuzz/), 2.06M exec/s in-process Core v31.1 differential script fuzzer (fuzz_script_diff_inproc), 24/7 systemd fuzzing service (bmc-fuzz.service), and GitHub Actions CI (.github/workflows/ci.yml). Remaining: add AFL++/Honggfuzz hardware branch coverage, seed with Core's qa-assets corpus, register in bitcoinfuzz, and expand Z3/SMT proofs in formal/. |
| Phase 3: Decompose Monoliths & Operational Parity | Months 4–10 | Split main.c (14.7k LOC) and >4.5k-LOC RPC/mempool files into cohesive modules. Replace coarse g_exec_lock with read-mostly snapshot lanes and publish real p50/p95/p99 RPC latency under load. Upgrade wallet encryption to AEAD (BMCWENC2) with SQLite descriptor interop or explicitly scope bmc to watch-only/external-signer mode. Close ZMQ block-tx parity, loadtxoutset, and chunk-based mempool eviction. |
| Phase 4: Reproducible Releases & Human Audits | Months 10–18 | Ship deterministic Guix/Nix reproducible builds, semantic versioning with multi-maintainer GPG-signed release tags, a public bug bounty program, and funded independent human security audits of consensus, cryptography, and P2P networking before ever removing the experimental warning. |