Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Signal 10 min read Deep dive mediumAdept

A Synchronized Start for Linked Devices

Signal now lets users transfer message history and the last 45 days of media when linking a new Desktop or iPad, without exposing data to the server. Linking starts with a QR code containing a temporary provisioning address and a Curve25519 public key. The primary device replies with an encrypted provisioning message carrying shared keys, a one-time linking token, and a new one-time 256-bit AES key that encrypts a compressed history archive uploaded as an attachment. Media isn't re-uploaded: the archive holds pointers to existing encrypted attachments, which the server already deletes 45 days after upload, so the archive is mostly text and compresses to a few megabytes.

Related posts

  • Building end-to-end security for Messenger

    Meta Engineering easyNovice

    Messenger is rolling out end-to-end encryption by default for personal one-to-one chats, built on the Signal protocol and accompanied by two whitepapers covering the messaging protocol and Labyrinth, a new encrypted storage protocol. The design goals break down into eight concepts, including confidentiality in transit and in storage, user control over endpoint devices, telemetry limits and third-party scrutiny. Key challenges included keeping Messenger's password-based multi-device model, rebuilding server-dependent features (using OHAI and Anonymous Credentials for private sticker search), storing ciphertext history on servers with key rotation via Labyrinth, and supporting web clients. Group chats and Instagram DMs remain in testing.

  • Key Transparency Comes to Messenger

    Meta Engineering easyNovice

    Messenger now supports key transparency verification for end-to-end encrypted one-on-one chats, letting users automatically confirm that contacts' public keys haven't been swapped by a compromised server instead of comparing per-device keys manually. The system reuses WhatsApp's Auditable Key Directory (AKD) library, with Cloudflare acting as an independent auditor. Messenger's per-device keys drive a publish epoch roughly every 2 minutes, each adding hundreds of thousands of keys, into a directory of billions of entries. To cope, Meta reduced AKD proof sizes as per-key version counts grow and hardened sequencing against outages and long delays.

  • How WhatsApp enables multi-device capability

    Meta Engineering mediumAdept

    WhatsApp's new multi-device architecture drops the phone as source of truth: each device gets its own identity key, the server maps accounts to device lists, and senders use client-side fanout to encrypt each message separately over pairwise Signal sessions to every sender and recipient device. Security codes now cover all device identities, and Automatic Device Verification limits re-verification to full account re-registration. Calls send per-device SRTP master secrets via fanout, with group calls rekeyed when participants change. Message history moves to a new device as an encrypted bundle, while ongoing app state is stored server-side end-to-end encrypted, including metadata, under rotating keys.

  • How Trail of Bits helps verify the integrity of your Signal chats

    Trail of Bits easyNovice

    Signal's Automatic Key Verification is a key transparency system that keeps a globally consistent, auditable map from phone numbers to public keys, so a compromised server cannot quietly hand out a false key. Trail of Bits runs one of three independent auditors, alongside Signal and Cloudflare. Its auditor is an independent open-source implementation that tracks each new entry in a local Merkle tree and periodically signs tree heads from a single consistent lineage. Clients require signatures from all three auditors within the last seven days, which caps a split-view attack at about one week before warnings appear.

  • Introducing Automatic Key Verification

    Signal mediumAdept

    Signal's automatic key verification uses key transparency to confirm that the binding between a phone number or username and its public key is globally consistent, giving the same protection against a compromised directory as comparing safety numbers, without meeting in person. The design is an append-only log of key changes. Each entry has a sorted index snapshot, which lets clients binary-search for a contact's key in about 30 lookups over a billion entries. Key owners monitor the same entries to confirm their own key is listed correctly. Third-party auditors (Cloudflare and Trail of Bits) sign each log entry once, which keeps the directory operator from showing different views to different users.

The quest for software engineering knowledge.

Look:
Layout: