Skip to main content

Release Notes: v0.2.0-beta

Release Date: March 26, 2026 Previous Version: v0.1.17-alpha (February 28, 2026) Codename: Queue Rotation + Multi-Server + Web Installer


Highlights​

  • Queue Rotation - Live server migration without disconnection. Four consecutive rotations verified with bidirectional chat, delivery receipts, and post-quantum encryption on 512 KB SRAM.
  • Multi-Server Infrastructure - 21 preset SMP relay servers from three operators (SimpleX Chat, Flux, SimpleGo). Single active server with radio-button selection. Server switch triggers live Queue Rotation.
  • Web Serial Installer - Flash SimpleGo directly from the browser via WebSerial. Open and Vault mode selection, eFuse status check, erase flash, reboot. No CLI tools required.
  • 5 Encryption Layers - Post-quantum key exchange (sntrup761) now active and verified. Hybrid X448 + sntrup761 KEM from the first message.
  • TLS Fingerprint Verification (SEC-07) - Server identity verified via SHA-256 key hash pinning at all four TLS connection points (main server, peer server, rotation server, reconnect).
  • eFuse Vault Mode - Hardware-secured NVS encryption with HMAC key burned into ESP32-S3 eFuse BLOCK_KEY1. Device generates its own key on first boot. Irreversible.
  • Delivery Receipts - Two-checkmark system. Sent, delivered, failed, pending states stored in SD card history (History v2 format).
  • 8 Queue Rotation Bugs Fixed - Consecutive rotations work reliably. Root causes identified and surgically fixed via DIAG-based byte-level analysis.

New Features​

Queue Rotation (Sessions 49-50)​

Live migration of message queues between SMP servers. The 7-phase protocol (QADD, QKEY, KEY, QUSE, Live-Switch, QTEST, Cleanup) is fully implemented in C.

PhaseWhat happens
QADDCreate new queue on target server, send replacement info to peer
QKEYReceive peer's new E2E key for the replacement queue
KEYSecure the new queue with peer's sender key
QUSEActivate the new queue, peer switches to sending there
Live-SwitchOverwrite credentials in RAM and NVS, reconnect to new server
QTESTVerify bidirectional communication on new queue
CleanupClear rotation state, resume normal operation

Queue Rotation uses a second TLS connection to the target server. SRAM budget confirmed: ~1,500 bytes per additional TLS connection. Maximum 2 simultaneous TLS connections safe on ESP32-S3.

Multi-Server Infrastructure (Session 49)​

DetailValue
Total preset servers21
SimpleX Chat servers14 (Storage + Proxy)
Flux servers6 (Storage + Proxy)
SimpleGo server1 (our SMP relay)
Maximum servers32 (including custom)
Selection modelRadio-button (one active at a time)
PersistenceNVS with version-checked blob serialization
Server switchLive Queue Rotation (no reboot)

Web Serial Installer​

Browser-based firmware installer at simplego.dev/installer.

FeatureDetails
BrowserChrome 89+ or Edge 89+ (WebSerial API)
ModesOpen Mode and Vault Mode selection
Flash methodMerged binary at offset 0x0, eraseAll enabled
Baud rate921,600 with compression
eFuse checkReads ESP32-S3 eFuse register (EFUSE_RD_REPEAT_DATA1) to detect HMAC_UP
Additional toolsErase Flash (with confirmation), Reboot Device, Check Security
Flash time~60-90 seconds for ~1.9 MB binary

Delivery Receipts (Session 43)​

History v2 format adds 1-byte delivery status after direction byte.

StatusValueMeaning
SENT0Message sent, no confirmation yet
DELIVERED1Peer acknowledged receipt
FAILED2Send failed
PENDING3Queued for sending

Old v1 history files remain v1 forever (no migration). New files use HISTORY_VERSION 0x02.

TLS Fingerprint Verification - SEC-07 (Session 49)​

Server identity verified at four connection points:

  1. Main server connection (boot + reconnect)
  2. Peer server connection (sending messages)
  3. Rotation server connection (Queue Rotation target)
  4. Re-subscription after network loss

SHA-256 hash of server's DH public key compared against stored key_hash from preset or NVS. Connection rejected on mismatch.


Bugs Fixed​

Queue Rotation Bugs (Session 50) - 8 Fixes​

FixProblemSolution
As_complete_logged function-local static, never resetFile-static variable + smp_tasks_reset_rotation_guard() API
BAuth/DH backup overwritten every rotationConditional backup: if (!has_peer_auth) - only originals saved
Crq->snd_id set to Reply Queue snd_id instead of Main Queuerq->snd_id = rd->new_snd_id
DCQ E2E peer cache never invalidatedReset in rotation_start() + after Phase 1b
Phase 1bCQ pipeline needs new E2E keys after rotationour_queue.e2e_private = rd->new_e2e_private + peer key from QKEY
CachePhase 1b writes after cache fillSecond smp_tasks_reset_rotation_guard() call after Phase 1b
Queue 2App processes only Queue 1 from QADDConfirmed via Haskell NonEmpty head pattern - no code change needed
DIAGRoot cause found via byte-level comparisonStale peer key (82488db3) used instead of new key (8fca4b2e)

Other Fixes​

FixDescription
SEC-03memset replaced with mbedtls_platform_zeroize in smp_storage.c (CWE-14)
SMP server fingerprintUpdated our SMP relay fingerprint after certificate renewal
LVGL memoryScreen lifecycle fix - LVGL pool stable at 31% (was 86%)
subscribe_allRemoved redundant calls - O(N*M) scaling was root cause of Bug #30
smp_app_runRefactored from 530 to 118 lines, 5 static helpers extracted
smp_handshake74 debug statements removed, 1281 to 1207 lines

Architecture Changes​

FreeRTOS Task Architecture​

TaskCoreStackResponsibility
network_task016 KB PSRAMTLS read/write, subscriptions, PINGs
smp_app_task064 KB SRAMProtocol logic, NVS, Ratchet, Rotation
lvgl_task18 KB SRAMUI rendering
wifi_manager04 KB PSRAMWiFi connection management

New Files​

FilePurpose
smp_servers.c/hMulti-server management, 21 presets, NVS persistence
smp_rotation.c/hQueue Rotation protocol (QADD/QKEY/KEY/QUSE/QTEST)
ui_settings_info.cInfo panel with eFuse status, server management, timezone
ui_settings_bright.cBacklight control tab
ui_settings_wifi.cWiFi management tab

New Patterns​

PatternDescription
Conditional backupif (!has_peer_auth) - peer credentials saved only on first rotation
Double cache invalidationStatic caches reset at rotation_start() AND after Phase 1b
DIAG-based debuggingHex dump of actual keys in decrypt path for byte-level comparison
Lazy TLSRotation TLS opened only when needed (NEW, KEY), closed immediately
Live-SwitchCredentials overwritten in RAM + NVS, reconnect without reboot

Protocol Knowledge​

Documented during implementation and verified against Haskell reference:

TopicDetail
X3DH4-DH scheme (not 3 like Signal). HKDF-SHA512, salt=32 zeros, info="SimpleXX3DH", output=96 bytes
RatchetAES-256-GCM. Message Key via HKDF-SHA256 info="SimpleXMK". Chain Key via "SimpleXCK". 12-byte counter nonce.
Header2346 bytes fixed (56B X448 key + 4B pn + 4B ns + padding). Encrypted with header key.
E2E Layer 2Non-standard XSalsa20: HSalsa20(key, zeros[16]) instead of HSalsa20(key, nonce[0:16])
X448Haskell cryptonite outputs reversed byte order. SimpleGo reverses in smp_x448.c.
ZstdLevel 3 (default). Always active, including first connection request.
SMP versionClient range v1-v4 for QADD. App negotiates v7 for main connection.
corrId encoding0x30 = Maybe Nothing (pre-shared key). 0x31 = Maybe Just (inline SPKI key).
QADDApp processes only Queue 1 (Haskell NonEmpty head pattern). Queue 2 ignored.
findQCompares (SMPServer, SenderId) tuples. keyHash NOT compared by sameSrvAddr.

Codebase Statistics​

MetricValue
Source files47+
Lines of C22,000+
Encryption layers5
Maximum contacts128
Preset SMP servers21
SMP block size16,384 bytes
Ratchet states in PSRAM128 (permanently resident)
SD card encryptionAES-256-GCM with HKDF per-contact key

Build Information​

DetailValue
ESP-IDF5.5.2
TargetESP32-S3
Flash modeDIO, 80 MHz
Flash size16 MB
App offset0x110000
PSRAM8 MB OPI
PartitionCustom (OTA_0 3MB, OTA_1 3MB, NVS 128KB, NVS Keys 256KB)

Merged Binary Creation​

python -m esptool --chip esp32s3 merge_bin \
-o simplego-tdeck-plus-v0.2.0-beta-open.bin \
--flash_mode dio --flash_freq 80m --flash_size 16MB \
0x0 build/bootloader/bootloader.bin \
0x8000 build/partition_table/partition-table.bin \
0x110000 build/simplex_client.bin

Security Status​

IDStatusDescription
SEC-01OpenDecrypted messages in PSRAM never zeroed
SEC-02OpenNVS keys plaintext without Vault mode
SEC-03Closedmbedtls_platform_zeroize in smp_storage.c
SEC-04OpenNo memory wipe on screen lock
SEC-05DeferredHKDF info parameter (resolved by eFuse binding)
SEC-06DeferredPost-quantum toggle per contact (requires SEC-01 + SEC-02)
SEC-07ClosedTLS fingerprint verification at 4 connection points

Known Issues​

BugStatusDescription
#21OpenERR AUTH after peer reconnect (stale session_id)
#27OpenQR display after panic reboot
#32OpenPQ state failure on second contact (keypair pool exhaustion)
S50-5OpenRefresh timer runs endlessly after rotation

Upgrade Notes​

  • From v0.1.17-alpha: Full erase required (idf.py erase-flash). NVS structure changed (reply_queue_t new fields, server list, rotation state).
  • Web Installer: Performs full erase automatically (eraseAll: true).
  • Vault Mode: If upgrading a device already in Vault mode, the eFuse key persists across reflash. NVS will be re-encrypted with the same hardware key on first boot.

What's Next (v0.3.0)​

  • Workflow optimization (delivery receipt timing, send pipeline, peer connection reuse)
  • Stability hardening (fast send/receive handling, ring buffer overflow, connection loss recovery)
  • Nachzuegler flow (offline contacts during rotation)
  • Auto-reconnect for long-running connections (errno=104 ECONNRESET after ~4h)
  • Bug #21 fix (stale session_id after peer reconnect)


SimpleGo - IT and More Systems, Recklinghausen, Germany First native C implementation of the SimpleX Messaging Protocol 8 rotation bugs fixed, 21 servers, 5 encryption layers, 22,000+ lines of C