{"slug": "bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing", "title": "Bitcoin Machine Code v0.4.0 – Experimental ASM/C Bitcoin node, daily fuzzing", "summary": "An experimental Bitcoin node called Bitcoin Machine Code (bmc) released version 0.4.0, a full validating node written in assembly and C for Linux x86-64, macOS Apple Silicon (ARM64), and Windows x86-64 that its project describes as 100% AI-authored software. The project reports differential verification against Bitcoin Core v32.1 with byte-identical UTXO set MuHash3072 digests, a 491-command static and dynamic test gate, and 0 crashes and 0 mismatches in EvalScript diff checks, while warning that bmc has not received an independent human audit of its consensus and cryptographic assembly and should not hold production funds. The release adds optional libbitcoinkernel shadow/primary consensus via --consensus-engine=bmc|dual|kernel, BMCWENC2 ChaCha20-Poly1305 AEAD wallet encryption, cluster mempool policy, BIP324 encrypted transport, and native Esplora/REST/ZMQ support.", "body_md": "# Bitcoin Machine Code (`bmc`)\n\n          A full validating Bitcoin node built from scratch in assembly and C for Linux x86-64, macOS Apple Silicon (ARM64),\n          and Windows x86-64. Verified differentially against Bitcoin Core v32.1 with byte-identical UTXO set MuHash3072 digests,\n          optional `libbitcoinkernel` shadow/primary consensus (`--consensus-engine=bmc|dual|kernel`),\n          `BMCWENC2` ChaCha20-Poly1305 AEAD wallet encryption, cluster mempool policy, BIP324 encrypted transport,\n          native Esplora/REST/ZMQ, bit-identical reproducible builds, and a 491-command static & dynamic test gate.\n        \n\n`bmc` is 100% AI-authored software verified differentially against Bitcoin Core v31.1 and hardened across multiple security\n        audits and formal verification tracks, including the comprehensive [2026-11-27 audit remediation](security-audit.html). 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\n\n[Bitcoin Core](https://bitcoincore.org)for custody.\n\n`EvalScript` diff checks · 0 crashes / 0 mismatches\n## Key Capabilities\n\n### Consensus & Cryptography\n\nFull 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.\n\n### Custom LSM UTXO Engine & Archive\n\n            Append-only framed block archive (`blk*.dat`, packed `rev*.dat` undo for full-chain reorgs, `index.dat`,\n            `headers.dat`, `chainwork.dat`) paired with a crash-consistent LSM UTXO store featuring bounded memtables,\n            async forked flushes, Bloom-filtered sorted runs, leveled compaction, and optional `pread` low-memory mode.\n          \n\n### Core v31.1 Cluster Mempool\n\n            Shared cross-process mempool with optimal cluster linearization (64 tx / 101 kvB), full RBF with feerate-diagram verification,\n            TRUC (BIP431 v3), ephemeral dust, atomic `submitpackage` & 1p1c package relay, Core-format `mempool.dat`,\n            and a byte-identical port of Core's block-policy fee estimator (`estimatesmartfee`).\n          \n\n### P2P & Privacy Networks\n\n            Native IPv4, IPv6, Tor v3 (ephemeral onion service + SAFECOOKIE + per-connection stream isolation), I2P (SAM 3.1), and CJDNS.\n            Full BIP324 v2 encrypted transport with v1 fallback, BIP152 compact blocks in both directions, BIP155 `addrv2`,\n            BIP157/158 compact block filters, BIP339 `wtxidrelay`, and ASMap bucketing.\n          \n\n### Native Desktop GUI, Hardware PSBT & Wallet\n\n            Pure native Rust `bmc-gui` (`egui`/` eframe` — zero WebView/JS) for macOS, Linux, and Windows\n            with BIP21 QR codes, Coin Control, Watch-Only descriptor vaults, USB HWI hardware signing (`signtx`),\n            standard BIP44/49/84/86 derivation, live reorg-safe wallet catch-up, Miniscript (97/97 Core vectors), PSBT v0/v2, and MuSig2.\n          \n\n### Zero-Delay Indexes & Esplora\n\n`txindex`, `txospenderindex`, `coinstatsindex` (incremental MuHash), `blockfilterindex`,\n            and native `addrindex` are built as sorted runs + bounded tails *during* IBD. An in-process Esplora facade\n            (`bmc.esploraport`) powers an unpatched `mempool.space` instance directly.\n          \n\n## Native Desktop GUI (`bmc-gui`)\n\n        Bundled in all `v0.2.0` release archives for macOS Apple Silicon, Linux x86-64, and Windows x86-64:\n        a pure native Rust `egui`/` eframe` desktop wallet and node console (~4.8 MB stripped, zero Electron/WebView)\n        designed for **Watch-Only + Hardware Signer (PSBT/HWI)** workflows. Switch tabs below or click any screenshot to zoom\n        ([full walkthrough →](gui.html)).\n      \n\n## System Process Topology\n\n`bmcbitcoind` separates untrusted network I/O, RPC serving, block downloading, UTXO flushing, and index generation\n        across cooperating OS processes communicating through shared memory rings, atomic file renames, and bounded IPC pipes.\n      \n\n## Prebuilt `v0.2.0` Releases & Multi-Platform Builds\n\n        Official [**`v0.2.0` release archives**](https://github.com/BobClawblaw/bitcoinmachinecode/releases/tag/v0.2.0)\n        (wire identity `/BitcoinMachineCode:0.2.0/`) are automatically built, verified, and checksummed by GitHub Actions\n        (`.github/workflows/release.yml`) for all three native platforms from a single `main` tree.\n        Each archive bundles `bmcbitcoind`, **` bmc-gui`** (native Rust desktop app), `bmc_cli`, `bmc_wallet_cli`, all 5 runtime index helpers,\n        `config/bitcoin.sample.conf`, `README.md`, and `LICENSE`.\n      \n\n| Platform | `v0.2.0` Release Download (Node + GUI) | Assembly Backend | Build & Test From Source | \n|---|---|---|---|\n| **Linux x86-64** (Primary) | [`bmc-v0.2.0-linux-x86_64.tar.gz`](https://github.com/BobClawblaw/bitcoinmachinecode/releases/download/v0.2.0/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` | \n| **macOS Apple Silicon** (Darwin ARM64) | [`bmc-v0.2.0-macos-arm64.tar.gz`](https://github.com/BobClawblaw/bitcoinmachinecode/releases/download/v0.2.0/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` | \n| **Windows 10/11 x86-64** | [`bmc-v0.2.0-windows-x86_64.zip`](https://github.com/BobClawblaw/bitcoinmachinecode/releases/download/v0.2.0/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` | \n| **Checksums** | [`SHA256SUMS.txt`](https://github.com/BobClawblaw/bitcoinmachinecode/releases/download/v0.2.0/SHA256SUMS.txt) — verify with`sha256sum -c SHA256SUMS.txt` (or`shasum -a 256 -c SHA256SUMS.txt` on macOS) |  |  | \n\n## Quick Start\n\n### 1. Build & Configure (Linux x86-64)\n\n```\ngit clone https://github.com/BobClawblaw/bitcoinmachinecode.git\ncd bitcoinmachinecode\nmake -C asm runtime\ncp config/bitcoin.sample.conf /path/to/datadir/bitcoin.conf\n```\n\n### 2. Run the Node\n\n```\n# Production serve mode: P2P sync, UTXO validation, inbound serving, RPC\nasm/daemon/bmcbitcoind serve /path/to/datadir\n\n# Query over JSON-RPC using automatic 0600 cookie auth\nasm/daemon/bmc_cli -datadir=/path/to/datadir getblockchaininfo\nasm/daemon/bmc_cli -datadir=/path/to/datadir getnetworkinfo\nasm/daemon/bmc_cli -datadir=/path/to/datadir getmempoolinfo\n```\n\n### 3. Run under systemd\n\n```\n[Unit]\nDescription=Bitcoin Machine Code daemon\nAfter=network-online.target\n\n[Service]\nUser=bitcoin\nWorkingDirectory=/path/to/repo/asm\nExecStart=/path/to/repo/asm/daemon/bmcbitcoind.live serve /path/to/datadir\nRestart=on-failure\nKillSignal=SIGTERM\nTimeoutStopSec=300\n\n[Install]\nWantedBy=multi-user.target\n```\n\n## Datadir Layout\n\nEvery chain runs in its own isolated subdirectory (including `main/`), never colliding with Bitcoin Core filenames:\n\n```\n<datadir>/\n  bitcoin.conf                     Shared configuration (optional; supports [main]/[signet]/[testnet4]/[regtest])\n  main/                            Per-chain state directory\n    blk*.dat  rev*.dat             Framed block archive + packed full-chain undo data\n    index.dat headers.dat chainwork.dat\n    utxo.dat  utxo_run_*.dat       LSM UTXO WAL, Bloom-filtered sorted runs, atomic manifest\n    utxo_manifest.dat\n    txindex.* txospender.*         Sorted index runs + bounded live tails (built during IBD)\n    bfilters.* coinstats.* addr_hist.*\n    peers2.dat  banlist.json       BIP155 multi-network address book + persistent bans\n    mempool.dat fee_estimates.dat  Core-format mempool + block-policy fee estimator state\n    bmcwallet.enc / wallets/       Encrypted HD wallet store & tx journal\n    .cookie                        0600 ephemeral RPC credential (deleted on clean shutdown)\n    debug.log                      Leveled daemon log\n```\n\n## Repository Documentation Map\n\n| Document | Scope | \n|---|---|\n| `docs/releases/v0.2.0.md` | Official `v0.2.0` release notes: native Rust`bmc-gui` , P0 custody/HWI PSBT fixes, continuous fuzzing milestones, and download matrix | \n| `gui/README.md` | Pure native cross-platform Rust desktop GUI ( `egui` /`eframe` ) for watch-only + hardware signer (PSBT/HWI) and hot wallets ([screenshots & guide](gui.html) ) | \n| `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](fuzzing.html) ) | \n| `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 | \n| `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](assessment.html) ) | \n| `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) | \n| `docs/audits/CODE_AUDIT_2026-11-27.md` | Original 8-track static code audit report and finding inventory | \n| `docs/ENGINEERING.md` | Internal architecture, binary layouts, on-disk formats, and build/validation gates | \n| `docs/OPERATIONS.md` | Running, monitoring, upgrading, pruning, backup, and disaster recovery runbooks | \n| `docs/RPC_LIVE_NODE.md` | Embedded JSON-RPC server design, concurrency lanes, and per-method notes | \n| `docs/PARITY_ATTESTATION.md` | Dated MuHash3072 UTXO parity attestations against Bitcoin Core v31.1 | \n| `docs/reports/2026-10-06-core-vs-bmc-performance-release.md` | Head-to-head IBD, serving latency, memory, and disk release benchmark report | \n| `port/OSX_STATE.md` &`port/WIN_STATE.md` | macOS Apple Silicon and Windows x86-64 port status, roadmaps, and test gates |", "url": "https://wpnews.pro/news/bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing", "canonical_source": "https://bobclawblaw.github.io/bitcoinmachinecode/", "published_at": "2026-12-01 06:57:11+00:00", "updated_at": "2026-12-01 07:15:46.526314+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools"], "entities": ["Bitcoin Machine Code", "bmc", "Bitcoin Core", "libbitcoinkernel", "bmc-gui", "MuHash3072", "BIP324", "Esplora"], "also_reported_by": [], "takeaway": "bmc 0.4.0 offers a --consensus-engine=bmc|dual|kernel flag to run its own consensus in shadow or primary mode alongside libbitcoinkernel, but the project states its assembly consensus and cryptography have had no independent human audit, so it is for research and benchmarking only.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing", "markdown": "https://wpnews.pro/news/bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing.md", "text": "https://wpnews.pro/news/bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing.txt", "jsonld": "https://wpnews.pro/news/bitcoin-machine-code-v0-4-0-experimental-asm-c-bitcoin-node-daily-fuzzing.jsonld"}}