Back to Blog
Security Architecture August 2026 8 min read

Verifying Contacts Offline, Without a Key Transparency Server

Signal uses Merkle trees and external auditors to detect a server showing different keys to different people. VeilMesh avoids that problem by deriving the identifier from the key itself, which has its own costs. Self-authenticating identifiers have real costs, and Signal is still stronger in places.

Update, November 2026. The binding in section 3 has changed. The Veil ID is now the hash of the account key, which stays on the account’s primary device and signs a numbered list of the account’s devices. The 64-byte identity_key is now X25519 concatenated with that device’s own Ed25519 device key, and the receiver accepts it only if the newest device list it holds for the Veil ID, signed by the account key, names both keys. The device key signs the prekeys. Section 3 describes the binding as it was in August, when the Ed25519 half was the identity key itself. Section 4 has changed too. Two device keys under one Veil ID at the same time are now normal, one for each listed device, and they no longer raise a warning. The warning now comes from the device list: the account key signing two different lists under the same version number, which a device notices when both lists reach it. The observation history still shows how long the current key has been in use. Such a conflict is not always an attack: an old primary and a restore from the same seed can each sign a list.

In August 2026, Signal shipped automatic key verification. The button relies on a transparency log built from a chronological log tree and prefix trees for search, identifiers obscured through a verifiable random function, and two independent auditors (Cloudflare and Trail of Bits) who countersign the log so the server cannot show different data to different people.

It solves a real problem that VeilMesh does not have, for reasons explained below, though our approach has costs of its own.

1. What the log is actually for

In Signal, your identifier is a phone number. The mapping from that phone number to your current encryption key lives on the server. The weak point is that indirection: a server that can change the mapping can quietly point your contacts at a key it controls, and nothing in the protocol would reveal it.

The merkle trees, the VRF and the two external auditors all exist to detect one specific lie: the server told Alice one key and Bob another. Cryptographers call this equivocation.

Signal documents the limits. Automatic verification requires knowing your contact's phone number; username-only connections cannot use it. If a contact changes numbers, it stops working. And it does not, in Signal's own words, verify the identity of the user who controls a particular phone number or username. Manual safety number comparison remains necessary.

2. When the identifier is the key

A Veil ID is the SHA-256 hash of your Ed25519 public key. There is no mapping table, on our servers or anyone else's, because there is nothing to map: the identifier is derived from the key itself and can be checked locally by anyone holding both.

So the attack that the transparency log detects cannot happen here. A different key produces a different Veil ID, which appears as a different contact rather than the same contact with a new key. The check is local and needs no network.

That removes one attack, not all of them, and it creates a new requirement, described next.

Key observations propagating across a mesh network
Figure 1: With no central log, consistency evidence comes from the peers you actually meet.

3. The obligation: binding the session key

Without this step, the Veil ID check does not protect the session.

The safety number is computed from Veil IDs, which are hashes of Ed25519 keys. But the X3DH session is built on a separate X25519 key, delivered inside a prekey bundle. In our implementation, that X25519 key is derived from the identity seed directly, not converted from the Ed25519 public key. Neither can be computed from the other.

So only a signature can show that the session key belongs to the claimed identity. If the bundle carries an unsigned session key, the safety number proves nothing: the digits match while the session runs on somebody else's key.

VeilMesh now binds them explicitly. The identity_key in every bundle is 64 bytes — X25519 concatenated with Ed25519. On receipt:

  • the Ed25519 half is hashed and checked against the claimed Veil ID;
  • the signed prekey's Ed25519 signature is verified over a domain separator, the X25519 session key, and the prekey itself.

One signature covers both keys, so replacing either one makes verification fail. Bundles that fail verification are dropped. There is no permissive mode on any of the three paths that can establish a session: mesh delivery, server fetch, and prekey gossip.

4. What replaces the auditors

Binding proves a key belongs to an identity. It does not tell you whether that identity has been showing the same key to everyone. That is what a transparency log is for, and we do not have one.

Instead, we use the mesh. Every prekey advertisement is Ed25519-signed by its owner and propagates peer to peer. Each device now keeps an append-only record of what it has observed: which key, under which Veil ID, first seen when, last seen when, how many times, and how many hops away.

From that record, one question can be answered locally: have two different keys appeared under the same Veil ID at the same time?

A key that stops appearing and is replaced by another is an ordinary rotation, for example after someone reinstalls the app. Two keys whose observation windows overlap are a different case: different peers were shown different things, which is the equivocation the log is designed to catch. When this happens, the verification screen changes from an information panel to a warning not to trust the chat.

5. The layer key transparency does not have

As Signal itself states, key transparency does not tell you who controls an identifier. It tells you the mapping was not tampered with. These are different questions, and users usually want the answer to the first one.

VeilMesh answers it from the social graph. Contacts you have personally verified can vouch for others, and the verification screen reports how many of your own verified contacts have vouched for the person in front of you.

This is a heuristic rather than a proof, and the interface says so directly: vouching does not replace comparing the numbers yourself.

6. The digits, and why they changed

The safety number itself needed work. The previous derivation took twelve five-digit groups from four-byte windows advanced two bytes at a time. The windows overlapped, only 26 of the 32 hash bytes were used, and adjacent groups were correlated. There was no version marker and no domain separation.

The current format uses iterated SHA-512 over a domain separator and both sorted identity keys, then twelve non-overlapping five-byte blocks. The iteration count follows Signal's reasoning: in practice people compare the first and last groups rather than all sixty digits, and iteration makes grinding out a key with a plausible-looking number expensive.

The format version is displayed on screen alongside the digits. When two devices run different versions, the numbers will not match, and the version label lets the user see that the mismatch comes from the app version rather than an attack.

7. What this costs

The design has four limits.

The first contact is unprotected. Observation history begins when you first meet someone. Nothing in the mesh can vouch for a key you are seeing for the first time. This is trust-on-first-use, and a transparency log handles it better: a log lets a newcomer query history they did not personally witness.

Partitions delay detection. Our evidence of consistency is whatever your device has observed. If an attacker keeps two groups of peers from ever exchanging observations, the contradiction never surfaces. A centrally maintained log with external auditors does not have this blind spot, because it checks consistency globally rather than on each device. On this specific property, Signal's guarantee is stronger than ours.

Identifier exchange still happens out of band. Signal uses phone numbers, which people already know. We use QR codes and pasted IDs, which is more friction and one more step where a person can be fooled.

Vouching is social rather than cryptographic. It reflects who your contacts trust, and your contacts can be wrong.

8. What we ship

The verification screen shows three layers, from weakest to strongest:

  • Key binding: the session key is provably tied to the Veil ID. Automatic, offline, no server involved.
  • Observation history: the key has not changed since a known date, seen across a known number of observations. Automatic; it gets stronger as you meet more of the mesh.
  • Manual comparison: sixty digits, in person or over a call you trust; only this proves who holds the key.

The automatic layers show whether a key was swapped, but not who holds it. The screen says so, because when a security feature overstates itself, users stop checking.

Available now on iOS, macOS, and Android.