Skip to content

BitChat v0.4.0 β€” Phase 3.1: Authoritative Rust Core Consolidation, Independent Noise XX Verification & Zero Runtime Python Cryptography

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:24
· 12 commits to main since this release

BitChat RustPy v0.4.0 Release Notes (Phase 3.1)

Release Date: 2026-11-29
Tag: v0.4.0
Repository: Java-Mx/bitchat-rustpy
Architecture Milestone: Phase 3.1 β€” Post-Phase-3 Cleanup, Rust Migration Parity, Independent Regression Hardening & Universal Release Synchronization


Executive Summary

BitChat RustPy v0.4.0 is a dedicated stabilization, consolidation, and regression-hardening release following Phase 3 (v0.3.4–v0.3.5). Rather than introducing unverified architectural rewrites, v0.4.0 establishes one authoritative Rust core (bitchat._bitchat_core) across cryptography, Noise XX sessions, binary wire protocol, fragmentation/reassembly, TCP framing, mesh routing, deduplication, rate limiting, peer state, store-and-forward queuing, delivery ACK tracking, and native Windows WinRT / Linux BlueZ BLE drivers.

Key Highlights

  1. Single Authoritative Rust Core & Fail-Closed Enforcement:

    • Removed all 40 duplicate production pure-Python engines (py_* / Py*) and dead fallback branches from 17 modules under src/bitchat/{crypto,protocol,mesh,network}/ (~3,000 net lines removed).
    • Added fail-closed require_native_core() in src/bitchat/_native.py so BitChat refuses to start with unverified pure-Python cryptographic or protocol fallbacks if _bitchat_core is unavailable.
    • Relocated test-only pure-Python reference implementations to tests/support/py_reference/ exclusively for differential parity testing.
  2. Python cryptography Removed from Runtime Dependencies:

    • Moved cryptography from [project.dependencies] to [dependency-groups.dev] in pyproject.toml.
    • Runtime Python dependencies are now strictly textual, bleak, and dbus-fast (Linux only).
    • Verified dist/bitchat-0.4.0-cp312-abi3-linux_x86_64.whl in a completely --isolated environment without Python cryptography installed: full Noise XX handshake and ChaCha20-Poly1305 encryption/decryption succeed natively via _bitchat_core.
    • Reduced Linux distributable sizes (bitchat_0.4.0_amd64.deb: 19.09 MB β†’ 15.54 MB; BitChat-0.4.0-x86_64.AppImage: 21.79 MB β†’ 17.52 MB).
  3. Independent Regression & Security Verification Infrastructure:

  4. Cross-Platform Bluetooth Settings Diagnostics & Linux Desktop Icon Fixes:

    • Restored live Bluetooth diagnostic telemetry in Settings β†’ Bluetooth across Linux (BlueZ/D-Bus), Windows (WinRT), and macOS (CoreBluetooth/Bleak hybrid).
    • Restored complete hicolor Linux application icons (16x16 through 512x512 PNG + scalable SVG), validated desktop entries across .deb, AppImage, Flatpak, Snap, RPM, and Arch PKGBUILD.
  5. Storage & Privacy Invariant:

    • BitChat persists only ~/.bitchat/config.json and ~/.bitchat/identity.json (mode 0600 on POSIX, user-only DACL on Windows). Chat history is intentionally in-memory only β€” no SQLite database in any version nor future.

Release Artifacts & SHA-256 Checksums

Platform Artifact Size SHA-256 Checksum Verification Status
Windows Installer BitChat-0.4.0-windows-x64.exe 15.27 MB (16,014,881 bytes) EDE1BA35C33E3FDA1AB10E9DF98AB05DC37BE17113C97F25B09EC3E61DD96541 Built & smoke-tested on windows-latest CI (run 46277187710)
Windows ABI3 Wheel bitchat-0.4.0-cp312-abi3-win_amd64.whl 1.10 MB (1,155,044 bytes) 18CB96B803AA0883A02CF304AE98500671D4EC83A1F8D52395D8C16588A21859 Verified in --isolated env without Python cryptography (_bitchat_core.pyd)
Linux (.deb) bitchat_0.4.0_amd64.deb 15.64 MB (16,401,998 bytes) F597056B15FDDBDFA53280BEE9F970D1854F403F016A68284FECC52FB22E4A7C Built & verified on ubuntu-latest CI (run 46277187710)
Linux (AppImage) BitChat-0.4.0-x86_64.AppImage 17.55 MB (18,402,694 bytes) 94047E116F3353A30A33CB878A8000BAB42CA9C9C9256AA88077BFBF530ECAC4 Built & verified on ubuntu-latest CI (run 46277187710)
Linux (Flatpak) io.github.java_mx.bitchat.flatpak 14.97 MB (15,692,176 bytes) 5F307D984C0F4BDFBE264AD5C522B642BCEC89F1C7BFE11F90128BBBC32C8734 Built on ubuntu-latest CI (run 46277187710)
Linux ABI3 Wheel bitchat-0.4.0-cp312-abi3-linux_x86_64.whl 2.02 MB (2,113,861 bytes) 6ECBBDE57AD997661F2D4FB9058D5065C74B9CD03EE858A75C10EBD26EA7DF31 Verified zero runtime cryptography (_bitchat_core.abi3.so)
macOS Apple Silicon Wheel bitchat-0.4.0-cp312-abi3-macosx_11_0_arm64.whl 1005.93 KB (1,030,070 bytes) 82C8CE29E3A9E7210F83BEA1752F15750C6E7FBAB43043347722ED46C3313741 Built & isolated-import verified on macos-latest CI (run 46277187710)
Source Tarball bitchat-0.4.0.tar.gz 370.42 KB (379,315 bytes) ED8189C5B1884580474C86CE98C9DA25F835652D732BC6A705AA28C0CD9514F7 Built on ubuntu-latest CI (118 entries, zero compiled binaries)
WinGet Manifest Java-Mx.BitChat.yaml / manifests/j/Java-Mx/BitChat/0.4.0/ 1.63 KB (1,672 bytes) BA9D803DB3B5957ACEA0BAD8DA3D9B94B809334A540B59AB071C22DE772B6B6D Validated with winget validate and submitted to microsoft/winget-pkgs

Installation & Upgrade Commands

Debian / Ubuntu Linux (.deb)

sha256sum -c bitchat_0.4.0_amd64.deb.sha256
sudo apt install ./bitchat_0.4.0_amd64.deb
bitchat --version
bitchat --configure

Universal Linux (AppImage)

sha256sum -c BitChat-0.4.0-x86_64.AppImage.sha256
chmod +x BitChat-0.4.0-x86_64.AppImage
./BitChat-0.4.0-x86_64.AppImage --version

Windows (x64 Installer & WinGet)

# Verify SHA-256 against BitChat-0.4.0-windows-x64.exe.sha256
Get-FileHash .\BitChat-0.4.0-windows-x64.exe -Algorithm SHA256

# Install or upgrade via WinGet (once v0.4.0 PR is merged in microsoft/winget-pkgs)
winget install bitchat-rustpy
winget upgrade --id Java-Mx.BitChat --exact

Upgrade & Backward Compatibility (v0.3.5 β†’ v0.4.0)

  • Local Data Preservation: Upgrading from v0.3.5 preserves ~/.bitchat/identity.json (Ed25519 + X25519 keys, peer ID, 64-character SHA-256 fingerprint) and ~/.bitchat/config.json (nickname, trusted/verified contacts, transport settings, theme, keybindings) without migration loss.
  • Installer Identity Preserved: Windows Inno Setup AppId={{B17CHA70-B1EC-4E87-99B7-4DA78D0B7001}}, WinGet PackageIdentifier: Java-Mx.BitChat, and Moniker: bitchat-rustpy remain unchanged so in-place upgrades replace v0.3.5 cleanly.
  • Wire Protocol Compatibility: v0.4.0 remains 100% wire-compatible with v0.3.5 and legacy 4-byte peer-ID bitchat-tui peers, verified via immutable golden vectors and v0.3.5 wire-packet fixtures.

Audit & Verification References