Skip to content

Releases

Bitcoin Machine Code v0.2.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:59

Full Changelog: v0.2.0...v0.2.1

Bitcoin Machine Code v0.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 11:24

Bitcoin Machine Code (bmc) v0.2.0 — Native Desktop GUI, Hardware Wallet PSBT & 38B+ Fuzzing

Experimental Software Notice: bmc is 100% AI-authored software verified differentially against Bitcoin Core v31.1 and hardened across multiple security audits and 24/7 continuous fuzzing. It has not received an independent human security audit of its consensus and cryptographic assembly. Watch-only + Hardware Signer (HWI / Air-Gapped PSBT) is the recommended custody posture; do not hold significant funds in a hot wallet on mainnet.


What's New in v0.2.0

1. Pure Native Cross-Platform Rust Desktop GUI (bmc-gui)

  • Built in native Rust (egui / eframe) — zero WebView, zero Electron, zero JavaScript runtime — bundled directly inside all three platform release archives (bmc-gui / bmc-gui.exe).
  • 7 Native Screens:
    • Overview: Live sync progress bar, confirmed / unconfirmed (mempool) / immature balances in BTC & sats, live estimatesmartfee, chain badge (MAINNET / SIGNET / TESTNET4 / REGTEST), watch-only vs. hot-wallet safety posture, and recent transactions.
    • Receive & QR: Fresh non-reusing BIP44/49/84/86 address generator, native vector BIP21 QR code, and Verify on Hardware Device (walletdisplayaddress).
    • Send & Coin Control: Live validateaddress, fee-rate slider synced to estimatesmartfee, manual UTXO selection, Build Unsigned PSBT (primary safe path), and hot-wallet send with confirmation modal.
    • Hardware & PSBT Workbench: USB hardware signer detection (enumeratesigners), .psbt save/load + QR, decodepsbt + analyzepsbt, descriptor updater (air-gapped export), Sign via Hardware Device (HWI signtx), combinepsbt, finalizepsbt, testmempoolaccept dry-run, and sendrawtransaction.
    • UTXOs & History: Freeze/unfreeze UTXOs (lockunspent) and 1-click RBF bumpfee.
    • Wallets & Security: Switch wallets, create Watch-Only vaults or Hot wallets, import descriptors, rescanblockchain, and encrypt/unlock/lock/backup.
    • Node & Connection: Auto-discovers <datadir>/<chain>/.cookie or connects to a remote node via host/port/user/pass, plus BIP324 v2 peer & index status.

2. P0 Bitcoin Custody & Transacting Fixes

  • Standard BIP44/49/84/86 Derivation & Ranged Descriptors: Switched from legacy swapped m/<purpose>'/0'/0'/<index>/<change> to standard m/<purpose>'/<coin>'/0'/<change>/<index> (0' mainnet, 1' testnet4/signet/regtest), interoperable with Bitcoin Core, Sparrow, Electrum, Coldcard, Trezor, and Ledger. listdescriptors now emits true ranged account descriptors (wpkh([mfp/84h/<coin>h/0h]xpub.../0/*)#checksum, tr(...), sh(wpkh(...)), pkh(...)), and wallet.idx persists per-(type, chain) address indices so getnewaddress and change outputs never reuse index 0.
  • Live Tip-Following, Reorg-Safe & Mempool-Aware Wallet Sync: Upgraded walletscan.dat to BMCWSCN5 (48-byte header with tip_hash[32]), adding incremental wscan_catchup() with O(1) tip-unchanged fast-path and automatic rewind/replay across chain reorgs. Added shared-mempool overlay (rpc_node_mempool_foreach) so getbalances reports real mine.untrusted_pending and consecutive sends skip mempool-spent UTXOs.
  • Hardware Signer (HWI signtx) & Watch-Only PSBT Flow: Added rpc_signer_signtx() (512 KiB buffers), unblocked walletcreatefundedpsbt, fundrawtransaction, and walletprocesspsbt for watch-only wallets with internal change derivation, explicit inputs Coin Control, and fee_rate options.

3. Continuous Fuzzing Milestone (38.26B+ Executions, 0 Crashes)

  • 38.26 billion (38,264,066,048) mutated executions across 134 slices (4.47 fuzz-hours) on the 24/7 bmc-fuzz.service runner (commit 579e9b61).
  • 4.34 billion (4,340,433,920) in-process Bitcoin Core v31.1 EvalScript differential comparisons at 2.13M exec/s with 0 crashes and 0 mismatches.
  • Wire identity bumped to /BitcoinMachineCode:0.2.0/ across Linux x86-64, macOS ARM64, and Windows x86-64.

Release Assets & Verification

Each archive bundles bmcbitcoind, bmc-gui (native Rust desktop app), bmc_cli, bmc_wallet_cli, all 5 runtime index helpers (bmc_*), config/bitcoin.sample.conf, README.md, and LICENSE:

  • bmc-v0.2.0-linux-x86_64.tar.gz (Linux x86-64)
  • bmc-v0.2.0-macos-arm64.tar.gz (macOS Apple Silicon / ARM64)
  • bmc-v0.2.0-windows-x86_64.zip (Windows 10/11 x86-64, native Win32/NT syscall layer)
  • SHA256SUMS.txt
sha256sum -c SHA256SUMS.txt
# On macOS:
shasum -a 256 -c SHA256SUMS.txt
# On Windows (PowerShell):
Get-FileHash bmc-v0.2.0-windows-x86_64.zip -Algorithm SHA256

Bitcoin Machine Code v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 07:17

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