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:
- Local wrap.
Your mnemonic + address book are serialized, then wrapped with a
key derived from your chosen passphrase via
scrypt (N=2^17, r=8, p=1). The resulting
ciphertext is what goes to the server.
- The server sees ciphertext.
It never sees your passphrase, your mnemonic, or any address-book
row. If the server is compromised, the attacker gets opaque blobs that
still need your passphrase to decrypt — and that passphrase was never
sent anywhere.
- Restore.
On the new device, you re-enter the passphrase (or, for phone-based
restore, re-prove your phone and re-enter the PIN). The client
downloads the blob, unwraps it locally, and that's your identity back.
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:
- Talk to the bot.
You send Telegram's
/start to our bot.
Telegram tells the bot your phone number only after you click a consent
button inside Telegram.
- The bot issues an attestation.
An Ed25519-signed tuple of
(phone, pubkey,
timestamp). The signing key is Silent Mode's
hermes-verify service key, which is
SPKI-pinned client-side — the client refuses attestations from any
other key.
- The client stores the attestation.
You decide where it goes: your profile (public — lets contacts
who have your number find you) or private (used only to re-register
on a new device). You can rotate or revoke at any time.
- Contact discovery hashes before it asks.
When you look up a contact by phone, your client hashes the
number before sending the query. The server returns matches without
ever seeing the plaintext number — this is a one-way lookup, not a
directory dump.
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:
- Data-only FCM payloads.
The gateway pushes a wake event with no content body — the actual
NIP-17 wrap is still sitting on a relay. On receipt, the client fetches
the wrap and decrypts locally before the notification is drawn.
- Routing by pubkey tag.
The gateway only knows which pubkeys to wake. Its mapping is
{ pubkey, FCM token, platform }. No message
content or sender information ever reaches it.
- Stale-token pruning.
If FCM reports a token as
UNREGISTERED
the gateway drops the row and stops forwarding to it — so lost phones,
uninstalls and reinstalls don't leak traffic to anything that answers
to the old token.
- APK signature pinning.
The Android auto-updater refuses to install an APK whose signing
certificate doesn't match
signingCertSha256
from the release manifest. A compromised mirror or DNS hijack of the
download host cannot swap in a different-signer build.
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
- The local client.
Fully trusted — it decrypts your messages, holds your keys. The
code is open source; build it yourself if you want to be sure.
- Relays.
Semi-trusted. They can censor your messages (by refusing to
store them) but can't read them. Write to several.
- Name-resolution gateway.
Semi-trusted for freshness. The signed records manifest is
wallet-signed; your client verifies the signature, so the gateway
can't substitute a different pubkey for your name. It can serve
stale data; the client cross-checks against the chain when possible.
- Phone-verify + push gateway.
Semi-trusted. Push only knows
(pubkey, FCM
token). Phone-verify's signing key is SPKI-pinned — a compromised
gateway can refuse to issue attestations but can't forge one your
client will accept.
- Firebase (Android push).
Google's FCM delivers only wake events with no content, so a
compromised FCM path delivers nothing useful. It can observe that
your pubkey is currently reachable at a given FCM token.
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.