Repository navigation
Bitcoin Machine Code v0.1.0
Bitcoin Machine Code (bmc) v0.1.0 (Experimental Release)
Experimental Software Notice:
bmcis 100% AI-authored software verified differentially against Bitcoin Core v31.1 and hardened across multiple security audits and continuous fuzzing tracks. It has not received an independent human security audit of its consensus and cryptographic assembly. Use for research, benchmarking, archival/explorer serving, and differential testing — do not hold production funds in its wallet; use Bitcoin Core for custody.
- Documentation Site: https://bobclawblaw.github.io/bitcoinmachinecode/
- Full Honest Technical Assessment vs. Bitcoin Core v31.1: https://bobclawblaw.github.io/bitcoinmachinecode/assessment.html
- 2026-11-27 Full Audit Remediation Report: https://bobclawblaw.github.io/bitcoinmachinecode/security-audit.html
- Benchmarks vs. Bitcoin Core v31.1: https://bobclawblaw.github.io/bitcoinmachinecode/benchmarks.html
Release Highlights
Core Capabilities & Multi-Platform Tree
- Single
maintree, three native platforms: Hand-authored x86-64 NASM assembly (asm/*.asm), AArch64 Mach-O assembly for macOS Apple Silicon (port/osx/*.S), Windows x86-64 syscall emulation (port/win/), and a shared C orchestration/RPC/mempool/wallet layer. - 3.0× faster mainnet IBD with all indexes: 3h 17m 55s wall clock (7h 13m CPU) vs. Bitcoin Core v31.1's 9h 50m 04s (13h 15m CPU) on identical NVMe hardware (
dbcache=8192,assumevalid=938343), ending byte-identical on MuHash3072 UTXO set digest. Full-script sync (assumevalid=0) completes in 8h 00m. - Zero-delay sorted-run indexing & native Esplora:
txindex(26.9 GB vs. Core's 68.8 GB),txospenderindex,coinstatsindex,blockfilterindex, and nativeaddrindexbuild asynchronously during IBD. An in-process Esplora facade (bmc.esploraport) runs an unpatchedmempool.spaceinstance with zero external indexers. - Full Bitcoin Core v31.1 surface: 162 JSON-RPCs, Core REST (
/rest/), native ZMTP 3.1 ZMQ (hashblock/hashtx/rawblock/rawtx/sequence), cluster mempool (64 tx / 101 kvB, full RBF, TRUC v3, ephemeral dust, 1p1c package relay), BIP324 v2 encrypted transport, IPv4/IPv6/Tor v3/I2P SAM 3.1/CJDNS, descriptors, Miniscript (97/97 Core vectors), PSBT v0/v2, and MuSig2 (BIP327/373/390). - Wire identity bumped to
0.1.0:/BitcoinMachineCode:0.1.0/(protocol70016) across both x86-64 and macOS ARM64.
Security Hardening & Verification
- 2026-11-27 Full 8-Track Code Audit Remediation (PR #511): Resolved 15/15 CRITICAL, 21/21 HIGH finding groups, and 12 high-impact MEDIUM defects across Linux x86-64, macOS ARM64, and CUDA, pinned by a 16-check regression suite (
asm/tests/test_audit_2026_11_27.c). - Assembly-First Static & Fuzzing Infrastructure:
- Added automated AArch64 static ABI & Darwin
svc #0x80carry-flag auditor (scripts/arm64_abi_audit.py), immediately catching and fixing a transient 8-byte SP misalignment inport/osx/bitcoin_tx.S. - Added double-sided
PROT_NONEguard-page assembly fuzzers (fuzz_tx_asm,fuzz_script_asm,fuzz_cons_asm), ASan/UBSan C fuzzers (fuzz_miniscript,fuzz_wallet_addr,fuzz_rpc_json), and an in-process Bitcoin Core v31.1 differential script fuzzer (fuzz_script_diff_inproc, running at >2M exec/s), immediately catching and fixing a remote0xffCompactSizex9-clobberSIGSEGVinport/osx/bitcoin_tx.S. - Added checked assembly cursor/bounds macros (
asm/macros_safe.inc,port/osx/macros_safe.inc), single-source dual-arch consensus spec codegen (scripts/gen_consensus_inc.py), and cross-platform GitHub Actions CI (.github/workflows/ci.yml).
- Added automated AArch64 static ABI & Darwin
- Full Verification Gates:
- Linux x86-64: 483 / 483 PASS (
make -C asm test+gate-log-check+ ASan/UBSansan-check) - macOS Apple Silicon (ARM64): 455 PASS, 12 SKIP, 16 N/A, 0 FAIL (
port/osx/run_tests.sh+ hardened-Wall -Werror -fstack-protector-strong -D_FORTIFY_SOURCE=2+F_FULLFSYNC)
- Linux x86-64: 483 / 483 PASS (
Release Assets & Verification
Prebuilt archives are published for all three native platforms:
bmc-v0.1.0-linux-x86_64.tar.gz(Linux x86-64)bmc-v0.1.0-macos-arm64.tar.gz(macOS Apple Silicon / ARM64)bmc-v0.1.0-windows-x86_64.zip(Windows 10/11 x86-64, native Win32/NT syscall layer — no WSL or Cygwin)
Each archive includes bmcbitcoind, bmc_cli, bmc_wallet_cli, all runtime helper binaries (bmc_*), config/bitcoin.sample.conf, README.md, and LICENSE.
Verify archive integrity before running:
sha256sum -c SHA256SUMS.txt
# On macOS:
shasum -a 256 -c SHA256SUMS.txt
# On Windows (PowerShell):
Get-FileHash bmc-v0.1.0-windows-x86_64.zip -Algorithm SHA256