Friend Codes
What Are Friend Codes?
Section titled “What Are Friend Codes?”Friend codes are chattor’s way of exchanging identities without a central server. Each code is a 32-word mnemonic that encodes your public key, similar to how Bitcoin seed phrases work.
A friend code looks like this:
alpine bridge castle dragon ember falcon glacier harborisland jasper kindle lantern meadow nebula orchid prismquartz river sunset tower umbra velvet whisper xenon(8 groups of 4 words, drawn from a 256-word dictionary)
How They Work
Section titled “How They Work”- Your Ed25519 public key is encoded as a sequence of 32 words from a fixed dictionary
- The encoding is deterministic — the same key always produces the same code
- Friend codes map to
.onionaddresses via a SHA-256 hash - The mapping is one-way: you can derive the
.onionfrom the code, but not the code from the.onion
Sharing Your Code
Section titled “Sharing Your Code”- Press
[i]to open the Identity modal - Press
[c]to copy your friend code to the clipboard - Share it via any out-of-band channel (in person, encrypted message, etc.)
Adding a Friend
Section titled “Adding a Friend”- Press
[a]to open the Add Friend modal - Paste or type your friend’s 32-word code
- A friend request is sent over Tor to their hidden service
- Once they accept, a Signal Protocol session is established via X3DH key exchange
Security Considerations
Section titled “Security Considerations”- Friend codes should be exchanged over a trusted channel — they are your identity
- Anyone with your friend code can send you a friend request
- You can reject unwanted friend requests
- The friend code itself does not reveal your
.onionaddress to a passive observer (SHA-256 is one-way)