Security model.

Hermes is end-to-end encrypted by default. This page tells you what that means in detail — which keys live where, what the relays and gateway can see, what the optional add-ons (cloud backup, phone verification, push) change, and what Hermes does not try to protect you from.

Identity

Your identity is a Nostr key pair, deterministically derived from the same BIP-39 mnemonic as your Bitcoin Cash wallet. The on-chain name alice.x publishes that pubkey as an np record on its name certificate. The certificate is the identity.

12-word mnemonic
The user's only root secret. Never leaves the device unencrypted. On Android it is sealed with the Android Keystore; on Theseus it is wrapped with the vault PIN (DPAPI-sealed on Windows); on the web messenger it stays in IndexedDB for the current browser profile only.
↓ HKDF derivation
The same seed derives the BCH wallet key, the Nostr signing key, and the cloud-backup wrap key. One backup covers all three.
Nostr key pair
secp256k1 pubkey used as npub1…. Published on-chain as the np record of your name certificate.
Name certificate
On the chain. Your name owns your pubkey, not a company or DNS zone. No ICANN, no NIP-05 server, no account that can be seized. Lose your seed and you lose the name; that is the trade-off for having no gatekeeper.

Messages

Every DM is a NIP-17 gift wrap. Two layers of AEAD (nip44 v2, ChaCha20-Poly1305 with ECDH), each randomized, so the relay sees neither sender nor plaintext — only an opaque wrap addressed to the recipient's pubkey.

kind:14 (inner)
The DM itself: text, attachments, reply mid. Encrypted to recipient, signed by sender. The sender's pubkey only exists at this layer.
kind:13 (seal)
The inner event wrapped by a fresh ephemeral key. Hides the sender's real pubkey from anyone who can't decrypt the outer layer.
kind:1059 (gift wrap)
The seal wrapped by another fresh ephemeral key and addressed to the recipient's pubkey. This is what the relay sees. Timestamp is randomized within ±2 days to blunt timing correlation.
Published to relays
The same wrap is written to several relays for redundancy. Any one relay going dark doesn't lose the message. Hermes ships with Silent Mode's own relay plus a handful of public relays as defaults.

The recipient polls its own pubkey tag, downloads matching wraps, peels both layers in-process, and files the result into its local inbox. No server mediates the content.

Cloud backup optional · default off

Opt-in. Lets you restore your identity on a new device without carrying the 12-word mnemonic around. The backup is wrapped before upload:

Phone verification optional · default off

Hermes can prove you own a phone number without ever handing the number to a server as plaintext. The flow runs through a Telegram bot:

Push notifications optional · Android

The native Android app can wake up on incoming DMs even when it isn't in the foreground. The push gateway never sees your messages:

Address book

Local-only by default. The book is a plain JSON file on your device, editable, vCard-importable. When you add a contact by their on-chain name, Hermes resolves the name against the chain (over HTTPS to a public gateway) and stores the (name, pubkey) pair. The book is not uploaded.

If you turn on phone-match, your client hashes every number locally and queries the hash. The server returns the matches without ever learning the plaintext numbers, and you decide which matches land in your book.

What the operator can and cannot see

Can not see

  • Your message content.
  • Who you message (NIP-17 hides the sender).
  • Your mnemonic — even your cloud-backup blob is opaque to the server.
  • Your address book, unless you use phone-match (and then only hashes).
  • Your Telegram phone number in plaintext — only inside the signed attestation blob your client holds.

Can see

  • Which pubkeys subscribe for messages (relay sees the WebSocket filter).
  • When wraps are written to or read from a relay (timing).
  • Your IP, unless you route the client through Tor.
  • Your FCM token ↔ pubkey mapping, if you opt into push.
  • Your phone number ↔ pubkey mapping (as a signed attestation blob), if you opt into phone verification.

Threat model

Hermes protects against good

  • Passive dragnet surveillance of message content.
  • Relay operators reading your messages — they only see opaque wraps.
  • Account-level seizure — there is no account to disable.
  • DNS-level censorship — name resolution happens on-chain.
  • Name impersonation — each name certificate is unique on-chain.
  • Mirror / CDN tampering with the APK — the auto-updater pins the signing-cert SHA from the release manifest.

Hermes does not protect against boundaries

  • Targeted malware or an attacker with physical access to your unlocked device.
  • Coercion — if you are forced to reveal your mnemonic, the protocol has no answer. Use the vault PIN and the device lock as your first line.
  • Pure metadata correlation — a global passive adversary who sees both ends of your connection can still learn you and the recipient are online at the same time. Tor + multiple relays weaken this, but don't erase it.
  • Permanent message storage — Nostr relays are best-effort. Run your own, or write to several, if you need reach.

What you trust, and how little

Anything unclear?

This page is the plain-language version. The protocol details are in the code itself — all clients are open source under Silent Mode's licensing (MPL-2.0 for Hermes). Open an issue on the forge, or reach out over Hermes itself to silentmode.x.