Repository navigation
BitChat v0.4.0 β Phase 3.1: Authoritative Rust Core Consolidation, Independent Noise XX Verification & Zero Runtime Python Cryptography
LatestBitChat 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
-
Single Authoritative Rust Core & Fail-Closed Enforcement:
- Removed all 40 duplicate production pure-Python engines (
py_*/Py*) and dead fallback branches from 17 modules undersrc/bitchat/{crypto,protocol,mesh,network}/(~3,000 net lines removed). - Added fail-closed
require_native_core()insrc/bitchat/_native.pyso BitChat refuses to start with unverified pure-Python cryptographic or protocol fallbacks if_bitchat_coreis unavailable. - Relocated test-only pure-Python reference implementations to
tests/support/py_reference/exclusively for differential parity testing.
- Removed all 40 duplicate production pure-Python engines (
-
Python
cryptographyRemoved from Runtime Dependencies:- Moved
cryptographyfrom[project.dependencies]to[dependency-groups.dev]inpyproject.toml. - Runtime Python dependencies are now strictly
textual,bleak, anddbus-fast(Linux only). - Verified
dist/bitchat-0.4.0-cp312-abi3-linux_x86_64.whlin a completely--isolatedenvironment without Pythoncryptographyinstalled: 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).
- Moved
-
Independent Regression & Security Verification Infrastructure:
- Independent Noise XX Oracle: Added
rust/bitchat-core/tests/noise_snow_oracle.rsverifying byte-for-byteM1/M2/M3, 32-byte handshake hash, bidirectional transport encryption, and tamper/reorder/replay rejection against the independent Rustsnow = 0.9.6crate ([dev-dependencies]only). - Property-Based Testing: Added 20
proptest = 1.6.0suites inrust/bitchat-core/tests/property_tests.rscovering protocol framing, padding, fragmentation/reassembly, BLE decoders, mesh deduplication/rate limiting, and Noise cipher invariants. - Fuzz Harnesses & CI Corpus Replay: Added dedicated fuzz crate
rust/bitchat-core/fuzz/with 8libFuzzertargets, deterministic seed corpus, and CI replay suiterust/bitchat-core/tests/fuzz_corpus_regression.rs. - Immutable Cross-Language Golden Vectors: Added
tests/vectors/v0_4_0_golden_vectors.jsonverified independently by both Rust and Python. v0.3.5 β v0.4.0Upgrade Compatibility & Full Encrypted DM E2E: Addedtests/unit/test_v0_3_5_upgrade_compatibility.pyandtests/e2e/test_v0_4_0_full_encrypted_dm_pipeline.py.
- Independent Noise XX Oracle: Added
-
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 (
16x16through512x512PNG +scalableSVG), validated desktop entries across.deb,AppImage,Flatpak,Snap,RPM, and ArchPKGBUILD.
-
Storage & Privacy Invariant:
- BitChat persists only
~/.bitchat/config.jsonand~/.bitchat/identity.json(mode0600on POSIX, user-only DACL on Windows). Chat history is intentionally in-memory only β no SQLite database in any version nor future.
- BitChat persists only
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 --configureUniversal 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 --versionWindows (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 --exactUpgrade & Backward Compatibility (v0.3.5 β v0.4.0)
- Local Data Preservation: Upgrading from
v0.3.5preserves~/.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}}, WinGetPackageIdentifier: Java-Mx.BitChat, andMoniker: bitchat-rustpyremain unchanged so in-place upgrades replacev0.3.5cleanly. - Wire Protocol Compatibility:
v0.4.0remains 100% wire-compatible withv0.3.5and legacy 4-byte peer-IDbitchat-tuipeers, verified via immutable golden vectors andv0.3.5wire-packet fixtures.