Skip to main content

Protocol specification gap analysis

Work in progress — not audited

This analysis does not claim equivalence to Noise or the WireGuard paper.

Purpose

The Enkrypted Chat specification is a hybrid product + protocol document. This page tracks readiness for reviewers who need behavior without reading TypeScript.

Reference bar (updated)

Spec elementNoise / WireGuard barEnkrypted Chat status
ScopeSingle protocolMet (split) — P0–P8 + appendices vs ch. 1–12; composition documented
Wire formatsByte-level packetsPartial — JSON normative; 16 MiB cap; P4.13 full field reference; not binary
Crypto primitivesNamed profileMetP1
Processing rulesPseudocodeMetP6
State machinesFSM + diagramsMetP7, P3 sequences
Security propertiesFormal claimsMet — P1.4 Provides/Partial/Does-not-provide + ch. 9
Limits / errorsCaps + codesMetP8; protocol-error implemented in p2p
Test vectorsGolden hexPartial — V1–V7, V9 in Appendix A; live cascade V8 deferred
RationalesDesign whyMetP0
Signal deltasN/AMetAppendix B
VersioningFrozen idPartialEnkryptedChat-Profile-v0; v1 criteria in P1.7
Change logRev historyMetCHANGELOG-SPEC

Structural difference (honest)

Enkrypted Chat is a composition, not one monolithic protocol:

Auditor checklist

#QuestionWhere answered
1Session message order?P3, P7
2Algorithms for a text message?P1, P5
3JSON on the wire?P4, P5
4Decrypt failure / oversize?P6, P8
5What is not guaranteed?P1.5, ch. 11
6Reproduce a round-trip?Appendix A + repo tests
7P2P vs standard Signal?Appendix B

Deferred (documented, not hidden)

  • Live MLS+Signal+ML-KEM+AES hex (Appendix A V8, Profile-v1 gate).
  • Mandatory specVersion on all PDUs (Profile-v1 gate).
  • Binary wire profile (EnkryptedChat-Profile-v2-binary informative only).

Protocol document map

ChapterTitle
P0Design rationales
P1Protocol overview and profile
P2Signaling (broker path)
P3Session establishment
P4PDU catalog and schemas
P5Cascade wire encoding
P6Processing rules
P7State machines
P8Limits, errors, edge cases
Appendix ATest vectors
Appendix BP2P Signal deltas
Appendix CGlossary
Appendix DSFrame (informative WIP)