# SimpleX transport and trust

> How members reach a host over SimpleX, what is encrypted, what the host can see, and the post-quantum design.

## SimpleX, in one paragraph

[SimpleX](https://simplex.chat) is a messaging network with **no user identifiers**: not even
random ones. Messages go through relay servers (SMP for messages, XFTP for files) that only see
encrypted packets and can't tell who talks to whom. Zaun uses the official SimpleX servers by
default; a host can use its own.

## What is encrypted

| Between | Protection |
|---|---|
| A member and the host | SimpleX's end-to-end encryption, with post-quantum key exchange required: a client refuses a connection that isn't post-quantum |
| Attachments | a fresh symmetric key per file, sent only inside that connection |
| Voice | end to end between participants: SFrame (RFC 9605) with keys exchanged using X-Wing, a post-quantum hybrid, and signed by each member's key |
| Relays | see only ciphertext and timing |

## What the host can see

The host reads **channel content** (that's how it sends one post to thousands of members, keeps
history and enforces moderation). It does **not** hear voice, and it never learns members' IP
addresses (SimpleX hides them).

So whoever runs the host is trusted with the community's text, and that can be the owner
themselves. End-to-end encrypted
channels between members are [planned](/docs/resources/coming-soon/).

## Keys and signatures

Every key in Zaun (the community's root key, the host's key, each member's key, bot publishers'
keys) is a **composite** of ML-DSA-65 and Ed25519: a signature is valid only if both parts are.
An attacker would have to break both a post-quantum and a classical scheme.

## Voice and IP addresses

Voice media goes **through the host's TURN relay** by default, so participants don't learn each
other's IP addresses. A direct peer-to-peer path is an option apps can turn on (`allow_direct`), and
a host with no TURN relay only gets voice from apps that allow direct connections.
