/private-chat-engines:chat-signalfrom private-chat-engines
Provides deep technical reference on Signal's protocol stack including X3DH, double ratchet, sealed sender, PQXDH, and key transparency. Covers the Signal Foundation's cost structure, legal posture, and operational constraints.
Ships in private-chat-engines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 2 of 6 of the Private Chat Engines dossier (plugin
private-chat-engines), covering §1–§6. Sibling skills:chat-orientation-threat-models-and-landscape(§0–§5 — the three architectural families, threat-model taxonomy, the comparison matrix, the timeline, the five forces),chat-telegram(§1–§7 — MTProto and the cloud-chat compromise, the Durov prosecution, scale and economics, the bot and Mini-App economy),chat-matrix-and-element(§1–§6 — federation, Matrix 2.0, the ecosystem and its funding, the homeserver operator handbook, the developer surface),chat-the-wider-field(§1–§13 — MLS and Wire, WhatsApp, iMessage PQ3, Threema, Olvid, SimpleX, Session, Nostr, XMPP, Briar, Delta Chat, the dead ones, the policy annex),chat-builder-and-operator-playbooks(§1–§12 — protocol shape, the crypto checklists, the metadata budget, abuse under E2EE, the unglamorous 80%, ops checklists, incident playbooks). Section numbers are per skill, not shared across the set: each file is a self-contained dossier entry. A reference written as §N →skillpoints at that skill's own §N.Currency: state of research 16 September 2026. §1's protocol stack is stable fundamentals. §2 (organisation and costs), §3 (legal posture) and §5 (developer surface) are dated specifics with inline links — follow them before relying on a figure.
⚠️ The most technically rigorous mass-market messenger, and structurally the least operable one: there is no Signal server for you to run.
⚠️ GOTCHA boxes mark where the common mental model is wrong in ways that get people hurt or products mis-designed.
The three ideas that organize this document:
- ⚠️ EVERYONE ELSE'S CRYPTOGRAPHY IS NAMED AFTER THIS PROTOCOL X3DH plus the double ratchet is the baseline WhatsApp, Wire, Matrix's Olm/Megolm and others all build on. Learning it once pays off across the whole field.
- ⚠️ TRUST MINIMISATION IS THE PRODUCT, NOT JUST THE ENCRYPTION Sealed sender, enclave-based contact discovery, zero-knowledge group credentials and key transparency exist because content encryption alone leaves the server knowing who talks to whom. That engineering is the actual differentiator.
- ⚠️ THERE IS NO OPERATOR STORY, AND THAT IS A DESIGN CHOICE §4 is about what to do instead — because "just self-host Signal" is not an option, and a plan that assumes it is will fail late.
Signal is both an app and a protocol that everyone else's cryptography is named after. It is the most technically rigorous mass-market messenger and, structurally, the least operable one: you can use it, fork it, and study it, but you cannot run it. That constraint is the design.
Classic Signal sessions start with X3DH (Extended Triple Diffie–Hellman): each user has a long-term identity key (IK), publishes a signed pre-key (SPK) and one-time pre-keys (OPKs) to the server, and an initiator computes up to four DH combinations to bootstrap a shared secret. The server's pre-key bundles stand in for online presence — that's what makes messaging asynchronous.
The four combinations, concretely — Alice initiating to an offline Bob:
DH1 = DH(IK_A, SPK_B) // Alice identity key + Bob signed pre-key
DH2 = DH(EK_A, IK_B) // Alice ephemeral key + Bob identity key
DH3 = DH(EK_A, SPK_B) // Alice ephemeral key + Bob signed pre-key
DH4 = DH(EK_A, OPK_B) // Alice ephemeral key + Bob one-time pre-key (when one is left)
SK = KDF(DH1 ‖ DH2 ‖ DH3 ‖ DH4) // HKDF
DH1 authenticates Alice to Bob, DH2 authenticates Bob to Alice, DH3/DH4 supply freshness; Alice verifies the signature on SPK_B before any of it. A server compromised later cannot reconstruct SK: it only ever held public keys, and EK_A was generated for this one session and discarded.
PQXDH (shipped 2023) keeps X3DH intact and adds a post-quantum KEM: the responder uploads an ML-KEM-1024 ("last resort") pre-key, the initiator encapsulates against it, and the KEM secret is mixed with the DH secret so an attacker must break both. Crucially it upgrades initial secrecy against harvest-now-decrypt-later without changing the ratchet — ongoing forward secrecy and post-compromise healing stayed classical until 2025.
Two ratchets stacked:
MAX_SKIP).In October 2025 Signal announced SPQR (Sparse Post-Quantum Ratchet): a second, quantum-safe ratchet layered on the Double Ratchet, making the Triple Ratchet. Mechanics per Signal's announcement (2 Oct 2025) and the research collaborators' write-up (PQShield):
This is the current state of the art: by Apple's own level-0–3 taxonomy, the Triple Ratchet plus PQXDH is the "Level 3" pattern (PQ-secured establishment and ongoing rekeying) that iMessage PQ3 pioneered at scale in 2024.
Signal doesn't expose device-per-device chat; the Sesame protocol fan-outs per-device sessions under a stable identity, and client-side distribution handles device add/remove. From a user's perspective one conversation; from the protocol's, N parallel ratchets.
Normally the server must know the sender to route and rate-limit. Sealed Sender encrypts even the sender identity into the envelope body and authenticates delivery via bearer delivery tokens issued at registration (with profile-key-derived tokens for your contacts). Signal's servers aim to learn only destination timing — the design explicitly limits the metadata the operator itself could ever hand over.
Group membership, roles and even your own profile attributes are expressed as anonymous credentials (keyed-verification algebraic MAC schemes, CMZ-family, analysed in the Chase–Perrin–Zaverucha "Signal Groups / ACME" work). The server authenticates that you're an authorised member of group X without learning who you are or who else is in it. Same trick powers private profile storage.
Secure Value Recovery lets a 4-digit(+) PIN recover your profile/settings/social-graph seeds on a new phone without Signal being able to read them: SVR2 ran a memory-hard KDF (Argon2-ish) inside Intel SGX enclaves with a Raft-replicated enclave cluster; SVR3 (announced 2023) hardens the migration path to future enclave platforms. Lesson for builders: "let users restore a key from a short secret" forces you into threshold/HSM/enclave engineering — there is no cheap version.
Who in your address book is on Signal, without Signal learning your address book: the Contact Discovery Service (CDSI/CDSv2, "Ice Lake") does it inside SGX enclaves over Path ORAM so even memory-access patterns leak nothing (Signal's 2017 preview, 2022 ORAM deep-dive, repo signalapp/ContactDiscoveryService-Icelake). Caveat for the threat-model file: researchers at V12 found critical object-lifetime bugs in CDSI that compromised the enclave on the same Azure SGX hardware Signal uses — responsibly disclosed and fixed (v12.sh write-up). Enclaves reduce trust; they never eliminate it. Since usernames (Feb 2024), discovery is largely optional — you can hide your number entirely and be reached by handle or QR.
Until 2025 Signal deliberately had no cloud backup (Android had local encrypted ones; iOS had transfer only). On 8 September 2025 Signal shipped opt-in Secure Backups (announcement, help centre): zero-knowledge, keyed by a 64-char recovery key generated on-device; free tier = all text (100 MiB)
1:1 calls are P2P where possible with Signal-operated relay fallback (so IPs need not be exposed); group calls (up to 50) run through a Signal-operated SFU that forwards per-participant E2E-encrypted streams. "Call relay" is a user toggle — IP-vs-latency.
chat-the-wider-field §9.)chat-builder-and-operator-playbooks.You cannot self-host Signal. The server source is published (signalapp/Signal-Server, AGPL), but Signal runs a single global deployment, does not federate, and the clients are built to talk to Signal's infrastructure. That is intentional: a single authority makes protocol upgrades, abuse controls and key-distribution consistency tractable — Signal explicitly argues federation ossifies protocols (their 2016 "ecosystem is moving" argument, and it aged well: the Triple Ratchet shipped globally in weeks; Matrix's E2EE changes take years).
What an operator can still do in the Signal ecosystem:
chat-matrix-and-element. Signal is for people; sovereign deployments are for institutions.libsignal-client (Rust, AGPL-3.0)
is the reference implementation (protocol, zkgroup, SVR, account keys), with Java/Swift/Node
bindings. Everything from the Double Ratchet to the SPQR machinery is readable — one of the
best cryptography engineering educations available in any public repo (defensive serialisation,
constant-time ops, formal-verification CI).signal-cli (third-party, links as a device; fine for personal automation, fragile
and not sanctioned for service development). If your product needs a bot platform, that is
Telegram's or Matrix's world (→ chat-telegram, chat-matrix-and-element).chat-builder-and-operator-playbooks for the honest effort budget).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
signal, e2ee, private-messaging, encryption-protocols, x3dh, pqxdh
6 skills in this plugin
/chat-builder-and-operator-playbooksUse when designing or running a private-chat product — choosing the protocol shape before touching cryptography, the crypto stack as checklists, the server components and key custody you have to get right, the pre-launch audit checklist, the metadata budget table every service should fill in, abuse and trust-and-safety under E2EE, the unglamorous 80%, the WebRTC layer behind voice and video, maintained libraries to start from, ops and incident checklists, and budget intuition from public numbers. Companion to the other private-chat-engine skills./chat-matrix-and-elementUse when running or building on Matrix — the federated protocol and its room/event model, Olm and Megolm, Matrix 2.0 and where it stands, the ecosystem's organisations and funding, the homeserver operator handbook including the European sovereignty deployments, and the developer surface. Companion to the other private-chat-engine skills./chat-orientation-threat-models-and-landscapeUse when orienting in private messaging — the three architectural families and what follows from each, the threat-model questions that decide every other choice, the September 2026 comparison matrix, how the field got here, and the five forces reshaping it. Start here. Companion to the other private-chat-engine skills./chat-telegramUse when working with Telegram — MTProto and the cloud-chat architecture, why Secret Chats are 1:1 mobile-only and off by default, the Durov prosecution and the compliance turn, scale and economics, operating communities and channels, and the bot and Mini-App developer ecosystem with its constraints. Companion to the other private-chat-engine skills./chat-the-wider-fieldUse when evaluating a messenger outside the big three — MLS (RFC 9420) and Wire, WhatsApp's interoperability opening, iMessage PQ3, Threema, Olvid, SimpleX, Session, Nostr, XMPP with OMEMO, Briar, Delta Chat, the dormant and niche ones — or when you need the policy annex that shapes all of them. Companion to the other private-chat-engine skills.npx claudepluginhub the-vibey-project/vibey --plugin private-chat-engines