Veloso·Labs

Docs menu ↓

How messages travel without a server

An animated walk-through: how a message gets from one phone to another through public relays, with no server of ours.

Ashnote has no server of its own. The walk-through below shows how a message still gets from one phone to the other: press Play, or step through it with Next step. At the end you can send your own messages, close one phone's app and take relays offline. It runs in your browser and sends nothing.

In short

  1. Pairing happens in person (or with a link that works once). The QR code holds a one-off key, a secret, the relays to use and an expiry, never your identity. Each phone then makes a fresh key just for that contact.
  2. Every message is sealed three times: locked with the Double Ratchet (a new key for every message), sealed with your key for that contact, then gift-wrapped with a throwaway key and addressed to the other phone's contact key.
  3. The same envelope goes to several public Nostr relays. Relays are simple mailboxes run by other people. They hold the envelope until the other phone asks for it, and drop it when it expires.
  4. The other phone collects it when its app is open, keeps one copy, and opens the three layers. If a relay is down, the other relays still deliver.
  5. Then it disappears: each phone deletes the message after its timer, and the relays have only ever seen sealed blobs addressed to random-looking keys.

What a relay can and can't see

  • It sees: an encrypted blob, a throwaway sender key (new every time), the recipient's key for that one contact, an expiry time, and the network address of whichever phone connects to it.
  • It can't see: the message, who sent it, your phone number, name or account, or that the two contact keys belong to the same conversation.

More detail is in Privacy and security, and the full app is in the two-phone simulator.

Screenshots

The animated walk-through: two phones and three public relays, with what a relay sees
The animated walk-through: two phones and three public relays, with what a relay sees