Skip to content

Bitcoin Machine Code v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 07:17
· 30 commits to main since this release

Bitcoin Machine Code (bmc) v0.1.0 (Experimental Release)

Experimental Software Notice: bmc is 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.


Release Highlights

Core Capabilities & Multi-Platform Tree

  • Single main tree, 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 native addrindex build asynchronously during IBD. An in-process Esplora facade (bmc.esploraport) runs an unpatched mempool.space instance 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/ (protocol 70016) 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 #0x80 carry-flag auditor (scripts/arm64_abi_audit.py), immediately catching and fixing a transient 8-byte SP misalignment in port/osx/bitcoin_tx.S.
    • Added double-sided PROT_NONE guard-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 remote 0xff CompactSize x9-clobber SIGSEGV in port/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).
  • Full Verification Gates:
    • Linux x86-64: 483 / 483 PASS (make -C asm test + gate-log-check + ASan/UBSan san-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)

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