Wire Protocol

Byte-Identical Interoperability

Android, iOS, Desktop and web share one wire format. Shared test vectors, identical byte for byte on every platform, are recomputed independently by the server and checked in continuous integration.

KAT-gated CIAdaptive CBR paddingConstant-label HKDFOpen spec on request

Shared test vectors

A set of test vectors is shared by the server, Android, iOS, Desktop and the web app, with a fixed SHA-256 checked in every repository. They cover the handshake transcript, the verification code, key derivation, frame keys, hybrid signatures and key renewal. The server recomputes every vector on its own, in a separate implementation.

  • Identical byte for byte on Android, iOS, Desktop and web
  • Recomputed independently by the server
  • Fixed SHA-256 on each file, checked in every repository

Constant HKDF labels

Every key derivation uses HKDF-SHA-256 with constant, versioned labels defined in the specification, so each key lives in its own domain. Changing a label breaks interoperability, which is why the labels are covered by the shared vectors.

  • HKDF-SHA-256 across Android, iOS, Desktop and web
  • PRK derived from the session key
  • Info-string label completes domain separation

KAT-gated CI

Every platform runs tests that load the shared vectors and compare each result bit for bit. If one platform diverges, continuous integration fails: interoperability is checked on every change.

  • Android, iOS, Desktop and web load the same vectors
  • Any divergence fails the build
  • ML-DSA-87 vectors agree byte for byte across implementations