Insight
A key change you can check
Every change to a handle's keys is a signed entry at the end of its own public chain, and every peer checks the chain before it encrypts, so a substituted key is refused rather than trusted.
Every encrypted conversation starts with a public key fetched from a directory. If the directory hands over the wrong key, the encryption still works perfectly, for whoever holds that key. Most messengers leave the check to their users, who are asked to compare codes in person and rarely do. f|gment publishes every key change where every peer checks it, every time, without being asked.
A chain for each handle
Each handle keeps its own chain of entries in the public directory: its first keys, every device added or removed, every rotation of its keys and every change to its configuration. Every entry is signed with ML-DSA-87 under the handle's identity key, carries its position and the SHA-512 hash of the entry before it, and commits, by hash, to the key the next entry will carry. Nothing is edited in place: a change is a new entry at the end. Device entries carry no device tier, so the public chain does not show how a handle is set up on each device.
The chain lives in the storage the app already uses. There is no separate log server to run, audit or trust; the checking is done by the people who use the keys.
What a peer checks
Before a device starts a conversation with a handle, it reads the handle's chain from its first entry: the first entry is anchored to that handle, every link matches the hash of the entry before it, every signature verifies, every entry carries the key its predecessor announced, and the keys about to be used are the ones the newest entries name. A key no entry anchors is refused, a key only an older entry names is refused as superseded, and a chain shorter than one the device has already seen is refused as rolled back. Devices recheck their contacts' chains in the background and warn when a change appears that the contact did not announce.
- Signed entry, linked by hash
- The peer's checks
- Substituted entry
Someone who controls the directory and wants a conversation's messages has three choices. Appending an entry with their own key needs an ML-DSA-87 signature they cannot produce, for a key the chain never announced. Replacing the whole chain leaves every device that read it before holding a different head. That leaves showing different readers different chains.
The one thing a chain cannot show alone
A chain checked by one reader proves its own consistency, not its completeness: a chain cut short, or shown differently to different readers, looks valid to each reader on its own. So devices exchange the heads they hold for each handle inside conversations they already share, and they do so by default. Two readers shown different chains at the same position find out the next time they talk.
- Entry as each reader was shown it
- The entry that differs
- Heads exchanged inside an existing conversation
What remains is an assumption that is stated plainly: each handle a device checks has been seen by at least one other reader it talks to. A handle nobody else has read is checked only against itself. Comparing a safety number in person, or scanning a code, stays available, and confirms the same keys directly.