How moral666/qt works
QT is a technical prototype for end-to-end encrypted messaging, not a finished chat product. A client establishes a session with X3DH or PQXDH, then protects messages with Double Ratchet and sealed-sender identity; the CLI demonstrates sending and receiving through a Noise-over-WebSocket relay, which queues opaque data. Local encrypted persistence and mobile-language bindings are additional capabilities. The graph reflects README-described workflows where client internals were not excerpted; those links are cited to the README, not presented as inspected call sites.
Main entry points: messenger.rs Terminal client · connection.rs Client connection handler · x3dh.rs X3DH sessions · ratchet.rs Double Ratchet
Components 19
Client interfaces
- Terminal client
cli/src/bin/messenger.rs - Conversation demo
cli/src/bin/messenger_demo.rs - Pre-key wire format
cli/src/wire_format.rs
Cryptographic core
- X3DH sessions
core/src/x3dh.rs - PQXDH sessions
core/src/pqxdh.rs - Double Ratchet
core/src/ratchet.rs - Sealed Sender
core/src/sealed_sender.rs - Crypto primitives
core/src/primitives.rs
Network and relay
- Noise WebSocket
transport/src/ws_transport.rs - Noise sessions
transport/src/noise_session.rs - Relay server entry
server/src/bin/relay_server.rs - Client connection handler
server/src/connection.rs - Relay message protocol
server/src/protocol.rs - Relay queues and keys
server/src/store.rs
Persistence and bindings
- Encrypted local storage
storage/src/lib.rs - Platform bindings
ffi/src/lib.rs
Other components
- Messaging user
- Redis
- Kotlin, Swift, Python
Connections 23
- Messaging user → Terminal client: uses
README.md - Terminal client → X3DH sessions: establishes sessions
README.md - Terminal client → PQXDH sessions: can establish
README.md - X3DH sessions → Double Ratchet: initializes
README.md - PQXDH sessions → Double Ratchet: initializes
- Double Ratchet → Crypto primitives: uses
core/src/ratchet.rs - X3DH sessions → Crypto primitives: uses
core/src/x3dh.rs - PQXDH sessions → Crypto primitives: uses
core/src/pqxdh.rs - Sealed Sender → Crypto primitives: uses
core/src/sealed_sender.rs - Terminal client → Sealed Sender: seals sender identity
README.md - Terminal client → Pre-key wire format: encodes pre-key bundles
README.md - Terminal client → Encrypted local storage: persists identity and conversations
README.md - Terminal client → Noise WebSocket: connects over WebSocket
README.md - Conversation demo → Double Ratchet: demonstrates messaging
README.md - Conversation demo → Noise WebSocket: demonstrates network layer
README.md - Noise WebSocket → Noise sessions: uses
transport/src/ws_transport.rs - Relay server entry → Client connection handler: accepts connections
- Client connection handler → Noise WebSocket: uses
server/src/connection.rs - Client connection handler → Relay message protocol: decodes and encodes
server/src/connection.rs - Client connection handler → Relay queues and keys: dispatches requests
server/src/connection.rs - Relay queues and keys → Redis: reads and writes
server/src/store.rs - Platform bindings → Kotlin, Swift, Python: provides bindings
README.md - Kotlin, Swift, Python → X3DH sessions: uses crypto core
README.md