Skip to main content

Protocol interoperability and parity

Ratspeak's Rust protocol stack is engineered and continuously tested for byte-exact wire interoperability with Mark Qvist's reference Python implementations of Reticulum, LXMF, and LXST.

Stack parity matrix​

Ratspeak Rust componentReference protocol targetInteroperates with
rsReticulum 1.5.xPython Reticulum 1.6.x (1.5.0 → 1.6.0; 1.5.1 → 1.6.1)rnsd, Sideband, NomadNet, MeshChat, Columba, any Reticulum node
rsLXMF 1.5.xPython LXMF 1.3.x (1.5.0 → 1.3.0; 1.5.1 → 1.3.1)lxmd propagation nodes, Sideband, NomadNet, any LXMF client
rsLXST 0.4.x (experimental)Python LXST 0.6.xCompatible LXST voice endpoints (Opus / Codec2)
rsReticulumLite / rsLXMFLiteno_std port of rsReticulum / rsLXMF (Handheld 2.3.5)Full Reticulum & LXMF nodes (within the 3,659 B local Resource ceiling)
lrgp-rs / lrgp-pylrgp.v1 over LXMF fields 0xFB/0xFDRatspeak & LRGP-enabled clients (plain fallback text on other LXMF clients)

Continuous cross-platform interoperability results between Rust and Python nodes are published live at interop.ratspeak.org. Parity checks validate both byte-exact cryptographic/packet test vectors and live end-to-end exchanges against real Python rnsd and lxmd processes.

Feature-by-feature interoperability​

CapabilityRatspeak ↔ Sideband / NomadNetRatspeak ↔ Python rnsd / lxmdRatspeak ↔ Handheld 2.3.5
Identities, announces, routing, ratchetsFullFullFull
Links, Channels, Buffers, Request/ResponseFullFullLinks & bounded Resources (≤ 3,659 B local)
LXMF Direct, Opportunistic & Propagated deliveryFullFullFull (client propagation wrap/fetch)
Network stamps (1.6.x) & LXMF stamps/tickets (1.3.x)Full (fractional f64 costs)FullSupported via resumable streaming PoW
Contact QR exchangeRatspeak QR + lxma:// Legacy QRN/ABoth Ratspeak QR and lxma:// Legacy QR
Markdown formatting & message reactionsPlain text readable everywhere; rich rendering in RatspeakStored opaquelyPlain text readable
LRGP turn-based gamesReadable text fallback (e.g. [LRGP TTT] Move 3)Stored opaquelyReadable text fallback
Channels (hub-hosted group rooms)Hub/RRC room protocol (separate from private LXMF)Uses Reticulum LinksN/A

Key version & format transitions to watch​

  • ifac_size units (rsReticulum 1.5.0+): ifac_size in INI configs is now in bits (matching Python Reticulum; e.g. 128 = 16 bytes). Earlier rsReticulum 1.3.x configs used bytes — convert them with rnsd-rs config ifac-units.
  • SQLite state stores (1.5.0+): rsReticulum (storage/known_destinations.db, storage/cache/announces.db) and rsLXMF (storage/lxmf/state.db) use the same SQLite persistence formats as Python Reticulum 1.6.x and LXMF 1.3.x.
  • Bluetooth Peer UUID (Ratspeak 1.1.0+): The BLE Peer GATT service UUID changed in Ratspeak 1.1.0 (13370001-c7cb-4de2-98de-5d87fa06443d). Both devices must run 1.1.0+ to discover each other over Bluetooth Peer.
  • LXMF MessagePack fields (set_msgpack_field): Structured fields (0xFB/0xFD for LRGP, FIELD_TICKET, FIELD_REACTION, FIELD_RESULTS) must be encoded as native MessagePack types rather than binary byte blobs to interoperate with Python LXMF.

Intentional operational differences​

To allow Ratspeak, standalone Rust daemons, and Python Reticulum to coexist cleanly on the same machine without clobbering files or ports, default storage roots and shared-instance ports are intentionally distinct:

RuntimeDefault config / data directoryDefault shared-instance ports
Python rnsd / lxmd~/.reticulum/ and ~/.lxmd/37428 / 37429
Standalone rnsd-rs / lxmd-rs~/.rsReticulum/ and ~/.rsLXMF/37428 / 37429
Ratspeak app<app data>/.ratspeak/identities/<hash>/reticulum/37430 / 37431

Pass --config <dir> to standalone tools to point them at any directory, or attach Ratspeak to an existing rnsd / rnsd-rs daemon via Shared instances & topologies.

Next steps​