Decentralized Dead Drop

How it works

What protects your messages, and what does not.

A plain account of the design. The full specification, including the decisions still open, is PROTOCOL.md in the source.

Not independently reviewed. The encryption library this is built on, vodozemac from the Matrix project, was audited in 2022. Decentralized Dead Drop itself has had no outside review. Treat it accordingly.

Knowing it is the right server

Every connection uses TLS 1.3. The server has a private key, and its fingerprint is a hash of the matching public key, written as 52 letters and digits. The fingerprint travels in every invite link and QR code.

A phone that has the fingerprint accepts exactly the server that holds that key. It does not ask a certificate authority, so it works the same for a bare IP address as for a hostname. Someone who takes over the server's address does not have its key, and the app refuses them.

If you type an address by hand there is no fingerprint to check against, so the app shows you the one it found and asks you to compare it with the person who runs the server. After that the phone remembers it, and refuses any server that does not hold the same key.

Server fingerprint
znpepjc55xy7et44kfchuw5zdhaqtoe5r6hfxzkyddzbxkup2erq
deaddrop://203.0.113.7:7443/#fp=znpepjc5…2erq&t=5v2vdu44…

An invite link. The app opens it itself; no website is involved, and nothing after the # is ever sent in a request.

Who you are

There is no phone number, email address or password. Your phone makes its identity keys in its secure hardware, and those keys are your account.

You get a fresh identity for every server, so two servers cannot tell that the same phone uses both. The name people see is a label you choose in each channel.

Safety numbers

Any two members can compare thirty digits, or scan them as a QR code. Matching numbers mean each phone holds the other's real keys. This is what catches a server that tries to slip a device of its own into a channel under someone else's name.

Safety number with Gran
437920572900507133781057201825

Channels and the member list

A channel is a group chat on one server. A two-person conversation is a channel with two members.

Whoever creates a channel owns it. Joining takes an invite from the owner, after which you ask to join and the owner lets you in. Nobody is put in a channel without asking.

The owner's phone signs the whole member list, and every change is a new list with a higher version. Phones never accept an older one. So the server cannot add a member, and cannot keep one the owner removed.

How messages are sealed

This is the design Signal uses for groups and the one Matrix uses. Each phone has its own sending ratchet for each channel: every message uses the next key, and the used key is destroyed. Phones hand their ratchets to one another through private sessions between each pair of devices.

A phone winds its receiving ratchets forward past each message it has opened. Neither that message nor anything earlier can be opened again from what the server held, even by someone who later takes the phone.

Sending ratchets are replaced whenever the member list changes, so a removed member gets nothing new and a new member gets nothing old. Messages are padded to fixed sizes (256 bytes, then doubling), so every short text looks the same size.

Left out on purpose

What it does not have

  • accountNo phone number, no email address, no password. Your phone's keys are your identity.
  • central serviceThis website is information only. The app never contacts it.
  • delivery reports or read receiptsNobody is told when, or whether, you collected a message.
  • push serviceThe app keeps its own connection to your servers. Nothing about your messages passes through Google.
  • history on the serverA server holds a message until it is collected, and no longer.
  • adverts, analytics or trackingIn the app, on the server, or on this website.

Built in

What it does have

  • End-to-end encryption that moves onEvery message uses the next key and the used key is destroyed. Keys taken from a phone later cannot open messages recorded earlier.
  • A fresh identity on every serverTwo servers cannot tell that the same phone uses both.
  • Safety numbersThirty digits that two people compare, or scan, to be sure nobody is in the middle.
  • Invites as a QR code or a linkFor a server or for a channel. The app opens the link itself; no website is involved.
  • Four ways onto a serverAn invite, a password, approval of each new device, or open to anyone. The person running it chooses.
  • Quiet notificationsThey say only "New message" unless you choose to show more.

What a server can do, and what it cannot

For a server that has been broken into, or is run by someone hostile.

It couldBut it could not
Refuse service, or drop or delay messagesRead any message. It never holds a key.
See which devices are in which channel, the names they chose there, and when they sendForge a message from a member. Messages are signed.
See message sizes (rounded up to fixed steps) and the addresses phones connect fromAdd a member that other phones accept, or keep one the owner removed
Keep sealed copies it claims to have wipedOpen them later, even with a phone seized afterwards

Limits

What it does not protect against

  • Someone with your unlocked phoneThey can read what is on it. Messages already opened are stored on the phone, encrypted with a key in its secure hardware.
  • Being seen to use itA server, and anyone watching the network, can see that your phone connects, when, and roughly how much. They cannot see what is said.
  • BlockingAnyone in the middle, or the server, can stop messages getting through. Nothing prevents that.
  • A member who copies what they readEncryption ends at the people in the channel.
  • Mistakes in this softwareIt is new and unreviewed. The source is public so that it can be checked.

Before you choose it

What this design costs you

  • Lose your phone, lose your messagesAnd your place in every channel. There is no backup and no way to sign in again.
  • New members see nothing from beforeNeither does a new phone. The server has no history to give.
  • A channel depends on its owner's phoneIf the owner loses it, the channel can no longer change. Members can still leave.
  • Someone has to run the serverAnd keep its key file safe.
  • It uses some batteryStaying connected without a push service is not free.
  • Text only, Android only, for nowPictures, audio and video are planned.