Status Draft. Protocol version 1 (sv1) of the Sloppy Voice v2 product
Date 2026-12-04
Depends on 00 (overview and conventions), 01 (addresses), 04 (crypto conventions), 05 (accounts and devices), 06 (federation)
Decisions used D-002, D-006, D-007, D-012, D-017, D-019, D-021, D-027, D-030, D-032, D-033, D-034, D-035, D-036, D-037, D-038, D-048, D-049, D-050, D-054, D-055, D-058, D-059, D-061, D-062, D-065, D-071, D-072, D-083, D-084, D-085, D-086
Owns IdentityCertificate (sv-idcert+jwt); DeviceCertificate (sv-devcert+jwt); IdentityState (sv-idstate+jwt); DeviceRevocation (sv-devrevoke+jwt); the sv_device MLS credential (0xF5A0) and its validation algorithm; the device validity rule; GET /v1/users/{local}/identity and /v1/me/identity…; the identity reset procedure; pin and verification-state semantics; the safety number and QR verification algorithm; W2 and W4a to W4c trigger logic (W4d's trigger is 05's, 05 §12.12); the identity.changed and device.revoked payloads; the identity.* error codes

1. Scope

1.1 What this document covers

This document specifies everything about who a secure account is in Sloppy Voice v2:

  • the identity key (IK) shared by all enrolled devices of a secure account, and the per-device device signing key (DSK) (D-006, HP-1);
  • the four signed identity objects: IdentityCertificate, DeviceCertificate, IdentityState and DeviceRevocation (D-033);
  • the per-device box key (dbk), bound to the identity key in the DeviceCertificate, to which keys meant for one device are sealed (VaultKeyGrants, 08; HistoryShares, 14; D-007);
  • the device validity rule ("dual control");
  • the sv_device MLS credential and the algorithm that validates it (D-034);
  • the home server endpoints that publish IdentityState and register identities, devices, resets and revocations;
  • the Authentication Service (AS) rules: the hosting server's rules for channels and each client's rules for DMs and group DMs (D-035, HP-2);
  • identity resets and downgrades (D-019, D-071);
  • identity pins, verification state, safety numbers and QR verification;
  • the trigger logic for warnings W2 (including its new-account wording, §16.8) and W4 (W4a, W4b, W4c); W4d, the new-sign-in notice, is triggered by 05 (05 §12.12, D-084);
  • the payloads of the identity.changed and device.revoked events, for both server-to-server (S2S) and client delivery;
  • the identity.* error codes.

1.2 What this document doesn't cover

Topic Owner
How the identity key reaches a new device (upgrade ceremony, pairing, KeyBackup, recovery phrase), the AccountVault record format and platform key storage 08
MLS group mechanics: ciphertext suites, external commits, Welcome, commit policy, the removal and commit-duty procedure, sv_participants encoding, the mls.handshake event 13
How DM security is computed and how DMs change mode 12
Exact wording and presentation of W2, W4 and every other warning 20
Device records, sessions, the device revocation orchestration and bot accounts 05
HomeAssertion, DeviceProof, S2S delivery and audience tracking 06
Server signing keys and discovery 02
The JWS profile, Ed25519 verification rules and thumbprints 04

1.3 Conformance

Class (00 §1.5) What it MUST implement from this document
Server §5–§9 (issuing and verifying objects), §11 (all endpoints), §12 (events), §13.1–§13.5 (channel AS), §14.6 (DM identity filter), §15.2 (reset procedure), §19 (errors)
Full client, Web client §3–§10 (verification), §11 (calling the endpoints), §12.3 (event processing), §13.6–§13.7 (silent checks), §14 (DM AS), §15–§18
Bot client (secure bot) As a full client, except that the send blocking of §16.5 (for both verified_blocked and downgraded_blocked) and the §17 verification UI are OPTIONAL for bots. A bot MUST still apply the DM AS rules of §14.
Bot client (insecure bot) Nothing beyond reading IdentityState if it wants to

1.4 Terminology

This document uses the terms of 00 §2 exactly. It adds these:

Term Meaning
Subject The account an identity object is about, named by its canonical address in sub.
Own device From a client's point of view, any device of the account it is signed in to.
Initiating device The device that sent the request that caused a given identity change (upgrade, reset, downgrade, device registration).
Verifier store The state a verifier keeps per subject: the highest IdentityState ver it has accepted, that state, and the verified DeviceRevocations it has seen (§7.5).
Validated at The time at which a verifier last fetched an IdentityState from the subject's home server, or received one through an authenticated path (§13.1), and verified it.
Positive evidence A verified IdentityState with a higher ver that no longer lists a device or that changes igen, sec or inc (a new account at the address, D-086); a verified DeviceRevocation; or a 410 identity.account_deleted / account.deleted for the subject. The expiry of an IdentityState is never positive evidence (§14.4).
Pin record A client's stored record of the identity key it accepted for one contact's canonical address, with its verification state (§16).
Identity check result One value of the enumeration in §10.6 describing why an identity check failed.

1.5 Notation

|| is byte concatenation. raw(jwk) is the 32-byte public key in the x member of an OKP JWK (Ed25519, or X25519 for the box key dbk, §3.6). thumb(k) is the RFC 7638 SHA-256 JWK thumbprint of public key k, base64url without padding (04). now is the verifier's current time in NumericDate seconds. skew is 60 s (00 §7.7). Binary structures use the TLS presentation language of RFC 9420 §2.1, including its variable-length integer vector lengths (<V>), except VerifyQR (§17.2), which uses the fixed 2-byte length prefixes of RFC 8446 §3.4.

2. Identity model (informative)

                       secure account  alice@a.com
                                |
                 identity key IK (Ed25519, one per account, igen = 3)
                 held by every enrolled device; never in MLS
                                |
        signs                   |                     signs
   +----------------------------+------------------------------+
   |                            |                              |
IdentityCertificate      DeviceCertificate (did A)       DeviceCertificate (did B)   [DeviceRevocation (did C)]
 sub, ik, igen, kind      sub, igen, did, dsk, dbk, plat   ...
                                |                              |
                           DSK of device A                DSK of device B
                      (never leaves device A)
                  signs: MLS leaf, SealedMessage,
                  HistoryShare, MediaAttestation, DeviceProof

         home server a.com signs, every <= 24 h:
         IdentityState { inc, ver, sec, igen, idc, devices[{did,dkf,plat,since}], revoked[...] }

Three facts drive the design:

  1. Other people only reason about the identity key. A contact pins (alice@a.com, IK). Alice's new phone gets IK (08), certifies its own DSK, and nobody is warned (D-006).
  2. A device is valid only under dual control. It needs a DeviceCertificate signed by IK and a listing in the home server's IdentityState (D-033). The home server can't add a device because it lacks IK. Someone with a copy of IK can't add a device because they lack a home session to get it listed.
  3. Who checks depends on the context. In channels the hosting server is the Authentication Service, and clients never warn about other people (D-035). In DMs and group DMs every client is the Authentication Service, pins identity keys and warns with W2 when one changes.
Question Channel DM or group DM
Who decides whether a leaf is admitted? Hosting server (§13) Each member client (§14)
Do clients keep pins? No Yes (§16)
What does a reset of someone else show? Nothing W2 (§16.4)
What do clients check? The credential chain (MUST); the relayed IdentityState (SHOULD, silently) Chain, pin, sv_participants, fresh IdentityState for new devices
What does a problem with the user's own identity show? W4a, W4b (§18) W4a, W4b (§18)

3. Keys

3.1 Identity key

  1. A secure account has exactly one current identity key: an Ed25519 key pair (RFC 8032).
  2. The client that turns on encryption (08) or performs a reset (§15) generates it with a cryptographically secure random generator. A server never generates, receives or stores the private identity key, except inside the encrypted KeyBackup, which it can't open (08).
  3. Every enrolled device of the account holds the same private identity key (D-006). It reaches new devices only by pairing or KeyBackup (08).
  4. The identity key belongs to one identity generation (igen, §7.3). A new generation always has a new identity key (§3.4).
  5. Insecure accounts have no identity key (D-021).

3.2 Device signing key

  1. Every enrolled device has its own DSK: an Ed25519 key pair generated on that device.
  2. The private DSK MUST NOT leave the device. It MUST NOT be included in pairing payloads, KeyBackup, the AccountVault or diagnostics. Where the platform supports it, it SHOULD be stored as non-extractable (08).
  3. A DSK belongs to exactly one (subject, igen, did) triple. A device MUST generate a new DSK every time it enrols, including when an existing device re-enrols after a reset (§3.4).
  4. The DSK is the device's MLS leaf signature_key in every group (§10.2). It also signs SealedMessages and HistoryShares (14), MediaAttestations (18) and DeviceProofs (06).

3.3 What each key may sign

Key MAY sign MUST NOT sign
Identity key IdentityCertificate (sv-idcert+jwt), DeviceCertificate (sv-devcert+jwt), DeviceRevocation (sv-devrevoke+jwt). Nothing else. MLS messages, KeyPackages, leaf nodes, SealedMessages, HistoryShares, MediaAttestations, DeviceProofs, any labelled signature (00 §7.14), any other JWS type, any data from a remote party
DSK MLS handshake messages and leaf nodes (13); labelled signatures sealed, history-share, media-attest, vault-box-key and vault-generation (04 §7.3); DeviceProof (sv-devproof+jwt, 06) Any of the three identity-key object types
Box key (dbk, §3.6) Nothing: it is an encryption key only Anything
Home server key (purpose sign, 02) IdentityState (sv-idstate+jwt), plus the objects 06 and 15 assign to it —

Implementations MUST enforce the identity-key row in their signing interface: the function that signs with the identity key MUST accept only a JWS header whose typ is one of the three identity-key types and MUST build the header itself.

Rationale: the identity key is the root of every pin. If it never signs attacker-influenced or high-volume data, the only way to misuse it is to steal it.

3.4 Key freshness and non-reuse

  1. A home server MUST keep, for every canonical address it has ever registered, the set of identity-key thumbprints (ikf) and DSK thumbprints (dkf) ever registered for it. This history survives account deletion for as long as the server keeps the address's ver and igen counters (§11.9).
  2. A home server MUST refuse an IdentityCertificate whose ik thumbprint is in that set, and a DeviceCertificate whose dsk thumbprint is in that set or equals any ikf of the account, with identity.key_reused.
  3. A DSK MUST NOT equal the identity key.

Rationale: every reset produces a key that differs from every earlier one, so pins always detect it (§16.4). DSK uniqueness keeps one leaf per key across generations, as RFC 9420 §7.3 requires within a group.

Proposed decision: identity keys and DSKs are never reused for the same address, and the home server enforces this with a per-address history of thumbprints that outlives account deletion. Rationale: a reused key would let a re-upgrade or a re-registered address slip past pins without W2.

3.5 Generation and storage

Key generation timing, platform storage, web storage (D-065) and the pairing and backup transfer are specified in 08. This document only requires that the private identity key on a web client is unwrapped only for the operations in §3.3 and zeroed afterwards (00 HP-10).

3.6 Device box key (dbk)

  1. Every enrolled device has its own box key: an X25519 key pair (RFC 7748) generated on that device. It is the same key 08 §10.1 calls the device's box key; there is no second per-device X25519 key.
  2. The private part MUST NOT leave the device, with the same rules as the DSK (§3.2 item 2).
  3. Its public key is the DeviceCertificate's dbk claim (§6.1). It is therefore bound to the identity key and to the device, and anyone who holds the device's sv_device credential (every member of an MLS group the device is in, and the hosting server) can encrypt to it without a further fetch.
  4. It is used only as an HPKE recipient key (04, suite sv1-c1) for keys sealed to one device: VaultKeyGrants (08 §10.3) and the K_share of a HistoryShare (14, D-007). It never signs, and it is never an MLS encryption_key (13 keeps leaf encryption keys fresh and separate).
  5. A device MUST generate a new box key every time it enrols, including when an existing device re-enrols after a reset (§3.4), and issues its DeviceCertificate with it (§6.2).

Rationale: binding the box key into the identity-key-signed certificate lets a sharer seal keys to a recipient's devices using only the leaves it already validated, and stops a hosting or home server from substituting a key of its own.

4. Common rules for identity JWS objects

4.1 JWS profile

The four objects in this document are JWS compact serializations under the profile of 04 and 00 §7.13. In addition:

Rule IdentityCertificate DeviceCertificate DeviceRevocation IdentityState
alg EdDSA EdDSA EdDSA EdDSA
typ sv-idcert+jwt sv-devcert+jwt sv-devrevoke+jwt sv-idstate+jwt
kid thumb(ik) of its own ik claim thumb(ik) of the signing identity key thumb(ik) of the signing identity key <canonical-domain>#<keyId> of a home server key with purpose sign (02)
Other header members None. The header has exactly alg, typ and kid (04 §6.2); any other member fails malformed. None. The header has exactly alg, typ and kid (04 §6.2); any other member fails malformed. None. The header has exactly alg, typ and kid (04 §6.2); any other member fails malformed. None. The header has exactly alg, typ and kid (04 §6.2); any other member fails malformed.
Maximum compact length 2,048 bytes 2,048 bytes 1,024 bytes 32,768 bytes (§7.2 rule 7)
Lifetime Until the next reset Until revoked or reset Permanent exp − iat ≤ 86,400 s

A verifier MUST reject an object that exceeds its maximum length before parsing it.

The JWS payload is a UTF-8 JSON object under I-JSON (00 §7.2). Producers MUST NOT emit duplicate member names; verifiers MUST reject a payload with duplicate member names. Unknown payload members are ignored, except that exp and nbf MUST be absent from IdentityCertificate, DeviceCertificate and DeviceRevocation, and nbf MUST be absent from IdentityState; a verifier rejects an object that has them (malformed; 04 §6.3, §6.6). Producers SHOULD serialize without insignificant white space. Verifiers never re-serialize: signatures cover the exact bytes (00 §7.2).

Public keys in the claims ik and dsk are OKP JWKs with exactly the members kty = "OKP", crv = "Ed25519" and x (32 bytes, base64url without padding). The dbk claim (§6.1) is an OKP JWK with exactly kty = "OKP", crv = "X25519" and x (32 bytes, base64url without padding); the Ed25519 checks of 04 §4.3 don't apply to it, and HPKE's own check of RFC 9180 §7.1.4 rejects a low-order key when it is used. A JWK with any other member, a kty or crv other than the one its claim requires, or an x that doesn't decode to 32 bytes is malformed. Every Ed25519 key in a claim MUST pass 04 §4.3 items 1 and 2 (canonical encoding, not small order, in the prime-order subgroup) when it is accepted (04 §4.5), and every signature is verified under 04 §4.3 (cofactorless equation, S < L, small-order R rejected).

4.2 Canonical addresses

Every sub is a canonical address (D-032, 01). A verifier MUST check every sub (and an IdentityState's iss) with 01 §7.5 (isCanonical). Check 3 is the version-stable minimalPrepare test, never the full profile of 01 §3 (01 AD-8). For an IdentityState, check 6 is met by serverKey() (02 §11.6 step 2) together with §7.4 step 5. A credential checked locally (§10.4) runs checks 1 to 5; its check 6 is completed by the context check that compares its IdentityCertificate with a verified IdentityState's idc (§13.3 C4, §14.2), or at once when the verifier already knows the canonical domain. Before a message request is accepted, check 6 follows 01 §7.5's no-contact rule (§14.7). Any failure rejects the object; where an error code is returned it is address.non_canonical with 01's data.reason. Two addresses are equal only when their canonical UTF-8 byte strings are equal.

4.3 Time claims

iat, exp and at are NumericDate integers (00 §7.7). A verifier MUST reject an object whose iat is later than now + skew. IdentityCertificate, DeviceCertificate and DeviceRevocation have no exp. Their iat is informative apart from that check; it is never used to expire them.

5. IdentityCertificate

5.1 Object

Header: {"alg": "EdDSA", "typ": "sv-idcert+jwt", "kid": thumb(ik)}.

Claim Type Required Meaning and constraints
sub string Yes Canonical address of the account (§4.2).
ik object (JWK) Yes The identity public key (§4.1).
igen integer Yes The identity generation this key belongs to, 1 to 4,294,967,295 (2^32 − 1; 08 encodes it as uint32).
kind string Yes user or bot. It MUST equal the account's kind (05). A verifier MUST reject an unknown value.
iat integer Yes Time of issue.

The certificate is self-signed: the private key matching ik signs it. It proves nothing on its own. It becomes meaningful when an IdentityState signed by the subject's home server names it in idc (§7), or when a client has pinned its ik (§16).

5.2 Issuance rules

  1. A client issues an IdentityCertificate only when it creates a new identity key: at the first upgrade, at a re-upgrade after a downgrade (§11.4) and at a reset (§11.6).
  2. There is exactly one IdentityCertificate per (subject, igen). The home server stores the exact bytes it accepted and serves them, byte-identical, in every IdentityState for that generation.
  3. A secure bot's SDK issues it with kind: "bot" (§15.6). A user's client issues it with kind: "user".

5.3 Verification algorithm

VerifyIdentityCertificate(jws) returns (sub, ik, igen, kind) or an identity check result (§10.6):

  1. If the length exceeds 2,048 bytes, or it isn't three base64url segments separated by ., fail malformed.
  2. Decode the header. Fail malformed unless alg is EdDSA, typ is sv-idcert+jwt (otherwise typ_mismatch), kid is a string and the header has no member other than alg, typ and kid.
  3. Decode the payload. Fail malformed unless every required claim is present with the right type, ik is a valid JWK (§4.1) and kind is user or bot. Fail malformed if exp or nbf is present.
  4. Fail malformed unless kid equals thumb(raw(ik)).
  5. Verify the Ed25519 signature over the ASCII bytes of <header>.<payload> with raw(ik). Fail bad_signature on failure.
  6. Fail non_canonical unless sub passes 01 §7.5 checks 1 to 5; check 6 is completed as §4.2 says.
  7. Fail malformed if iat > now + skew.
  8. Return (sub, raw(ik), igen, kind).

5.4 Example

Header and payload, decoded (the full compact form is in §21.2):

{"alg":"EdDSA","typ":"sv-idcert+jwt","kid":"kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k"}
{"sub":"alice@a.com","ik":{"kty":"OKP","crv":"Ed25519","x":"11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo"},"igen":1,"kind":"user","iat":1764800000}

6. DeviceCertificate

6.1 Object

Header: {"alg": "EdDSA", "typ": "sv-devcert+jwt", "kid": thumb(ik)}, where ik is the identity key that signs it.

Claim Type Required Meaning and constraints
sub string Yes Canonical address. It MUST equal the IdentityCertificate's sub.
igen integer Yes It MUST equal the IdentityCertificate's igen.
did string Yes The device ID that the home server assigned to the device record (05): 16 bytes, base64url, 22 characters.
dsk object (JWK) Yes The device's DSK public key (§4.1).
dbk object (JWK) Yes The device's box key (§3.6, 08 §10.1): an X25519 public key as an OKP JWK (§4.1). Keys meant for this one device are sealed to it with HPKE: VaultKeyGrants (08) and HistoryShare keys (14, D-007).
plat string Yes desktop, web, ios, android or bot. Any value is 1 to 16 characters from [a-z0-9_]; anything else is malformed.
iat integer Yes Time of issue.

plat rules:

  • If the IdentityCertificate's kind is bot, plat MUST be bot. If kind is user, plat MUST NOT be bot. A verifier MUST reject a mismatch with kind_mismatch.
  • A verifier MUST accept an unknown plat value from a user certificate and display it as a generic device. Rationale: new platforms can appear without breaking old clients; plat has no security meaning apart from the bot rule.
  • The home server MUST check at registration that plat matches the platform class of the device record (05): bot for a bot device, web for a browser, and so on. Mismatch fails with identity.invalid_certificate and data.reason kind_mismatch.

6.2 Issuance rules

  1. Self-issued. Any enrolled device can issue a DeviceCertificate because it holds the identity key. In v1 a device issues a DeviceCertificate only for itself: after receiving the identity key by pairing or recovery (08), or after creating the identity key at an upgrade or reset, it generates its DSK and its box key (§3.6) and signs its own certificate, which binds both. It never issues one for another device.
  2. One per device and generation. There is exactly one DeviceCertificate per (subject, igen, did). The home server stores the accepted bytes and refuses a different certificate for the same triple (§11.5).
  3. Registration through the device's own session. The certificate takes effect only when the device registers it through its own home session (§11.5), which puts it in IdentityState. This is the home-server half of dual control (§9).

6.3 Verification algorithm

VerifyDeviceCertificate(jws, idc) where idc = (sub, ik, igen, kind) from §5.3, returns (did, dsk, dbk, plat) or an identity check result:

  1. If the length exceeds 2,048 bytes or it isn't a compact JWS, fail malformed.
  2. Check the header as §5.3 step 2, with typ sv-devcert+jwt.
  3. Decode and type-check the payload. did MUST decode to exactly 16 bytes. dsk and dbk MUST be JWKs of the forms §4.1 requires. Fail malformed otherwise. Fail malformed if exp or nbf is present.
  4. Fail key_mismatch unless kid equals thumb(ik).
  5. Verify the signature with ik. Fail bad_signature on failure.
  6. Fail subject_mismatch unless sub equals idc.sub byte for byte.
  7. Fail generation_mismatch unless igen equals idc.igen.
  8. Fail identity_key_as_leaf if raw(dsk) equals ik.
  9. Apply the plat rules of §6.1 (kind_mismatch).
  10. Fail malformed if iat > now + skew.
  11. Return (did, raw(dsk), raw(dbk), plat), where raw(dbk) is the 32-byte X25519 public key in its x member.

6.4 Example

{"alg":"EdDSA","typ":"sv-devcert+jwt","kid":"kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k"}
{"sub":"alice@a.com","igen":1,"did":"q2bS9xVg3m0yJpQe1vT0Aw","dsk":{"kty":"OKP","crv":"Ed25519","x":"PUAXw-hDiVqStwqnTRt-vJyYLM8uxJaMwM1V8Sr0Zgw"},"dbk":{"kty":"OKP","crv":"X25519","x":"ST6C_HRGSlkmiBdiPSBTxeuOLMSpiLT-4XnsawENUx0"},"plat":"desktop","iat":1764800000}

7. IdentityState

7.1 Object

IdentityState is the home server's signed statement of an account's current identity. The home server publishes one for every account it hosts, insecure accounts and bots included (D-033).

Header: {"alg": "EdDSA", "typ": "sv-idstate+jwt", "kid": "<canonical-domain>#<keyId>"}.

Claim Type Required Meaning and constraints
iss string Yes The home server's canonical domain. It MUST equal the domain part of sub and the domain part of the header kid.
sub string Yes Canonical address of the account.
inc string Yes The account's incarnation (05 §11.1, D-086): 16 bytes, base64url without padding (22 characters). It never changes while the account exists. An account registered again on the same local part after a deletion has a different inc (§11.9), and verifiers treat it as a different account (§16.4, 06 §11.6).
ver integer Yes Version, 1 to 2^53 − 1. Strictly increasing on every content change (§7.3).
sec string Yes insecure or secure (the account security state, 00 §4.1). A verifier MUST treat an unknown value as malformed.
igen integer Yes Current identity generation, 0 to 4,294,967,295 (§7.3).
idc string When sec is secure The IdentityCertificate JWS for igen, byte-identical to the registered one. MUST be absent when sec is insecure.
devices array of DeviceEntry Yes The active enrolled devices. Empty when sec is insecure. At most maxEnrolledDevices entries (§20), and never more than 64.
revoked array of RevokedEntry Yes Recently revoked devices (§7.2 rule 7). May be empty. At most 50 entries, of which at most 8 carry rev.
iat integer Yes Time of signing.
exp integer Yes Expiry. exp − iat MUST be greater than 0 and at most 86,400.

DeviceEntry

Member Type Required Meaning
did string Yes Device ID. Unique within devices.
dkf string Yes thumb(dsk) of that device's DeviceCertificate for the current igen.
plat string Yes Copied from that DeviceCertificate.
since integer Yes NumericDate when the device was listed (its registration time).

RevokedEntry

Member Type Required Meaning
did string Yes Revoked device ID. It MUST NOT also appear in devices.
at integer Yes NumericDate of the revocation.
rev string No A DeviceRevocation JWS for this did (§8), if one was uploaded.

7.2 Publication rules for the home server

  1. The home server MUST have a currently valid IdentityState for every account in states active, upgrade_required and suspended (05), and MUST serve it at GET /v1/users/{local}/identity (§11.2). Suspending an account changes nothing in its IdentityState; the home server keeps refreshing it. Rationale: a suspension is reversible and isn't positive evidence, so pins and groups stay stable while it lasts; 05 already stops the account acting.

  2. It MUST return the current IdentityState with every HomeAssertion it issues for a secure account (06), and include it in every identity.changed and device.revoked event (§12).

  3. It MUST sign a new IdentityState, with ver + 1, in the same transaction as every content change: upgrade (§11.4), device registration (§11.5), reset or downgrade (§11.6), device revocation (§11.8), DeviceRevocation upload (§11.7) and every prune of revoked (rule 7).

  4. Refresh. The served IdentityState MUST always have at least 1 h of validity left. The home server SHOULD re-sign every 12 h with exp = iat + 86400. A refresh that changes nothing but iat and exp keeps the same ver (§7.3).

  5. It MUST list in devices exactly the devices that have a registered DeviceCertificate for the current igen and aren't revoked, ordered by since and then by did (byte-wise on the base64url string).

  6. It MUST NOT list a device whose DeviceCertificate it hasn't verified under the current idc (§6.3).

  7. Revoked list and size. A device revoked at the current igen MUST stay in revoked for at least 90 days after at, unless the limits below force it out earlier. revoked holds at most 50 entries, and only the 8 most recent entries keep their rev. The compact IdentityState MUST NOT exceed 32,768 bytes. When a change would break any of these limits, the home server first drops rev from the oldest entries that carry one, then drops the oldest entries, until the state fits. At a reset, entries from earlier generations MAY be dropped. Dropping an entry or a rev is a content change: it MUST be made as a new IdentityState with ver + 1 (rule 3), never as part of a refresh. The home server SHOULD batch time-based prunes into the next re-signing (rule 4), which then becomes a content change. Absence from devices in a newer IdentityState is enough positive evidence on its own (§14.4), and a verifier keeps every DeviceRevocation it has verified (§7.5), so dropping an entry never revives a device.

    Note (worst case): the header with a 253-byte domain is under 500 bytes once encoded; the payload holds at most about 800 bytes of fixed claims and addresses, an idc of at most 2,048 bytes, 64 DeviceEntries of at most 130 bytes (8,320), 50 RevokedEntries of about 60 bytes (3,000) and 8 rev values of at most 1,032 bytes (8,256). That is about 22,500 bytes of JSON, about 30,000 bytes after base64url, plus 86 bytes of signature: about 30,600 bytes, under 32,768. A typical state with a few devices is under 3,000 bytes. 12 sizes dm.request with this per-state maximum.

  8. It signs with a key whose purpose is sign and whose status is active (02).

7.3 Rules for ver and igen

  • ver starts at 1 when the address is first registered and increases by exactly 1 on every content change. Content means every claim other than iat and exp. A refresh with unchanged content keeps ver. ver is never reused for a canonical address: it continues across account deletion and later re-registration of the same local part (§11.9).
  • igen is 0 for an address that has never had a secure account. It increases by exactly 1 at every upgrade, re-upgrade, reset and downgrade (00 §2.4). It never decreases, and like ver it continues across deletion and re-registration: a re-registered address starts from the previous igen + 1 (§11.9), even when the new account is insecure.
  • inc never changes while the account exists, so it never makes a content change on its own. A re-registered local part gets a new inc, while its ver and igen continue from the deleted account's (§11.9).
  • So the first secure generation of a brand-new address is igen 1. An account created on a secure server starts at igen 0 in state upgrade_required and reaches igen 1 when its first device turns on encryption (SM-3, 05, 08). Verifiers MUST NOT infer the security state from igen; only sec says it.
  • Durability. The home server MUST store ver, igen and the key history (§3.4) durably before it serves or sends any IdentityState that uses them. After restoring its database from a backup, or after any event that may have lost recent writes, it MUST increase the stored ver of every account by at least 2^32 before it signs any IdentityState. A restore that lost a generation change can't be repaired by counters alone: verifiers that saw the lost generation reject the restored states (state_rollback or state_equivocation) until the user resets again. 21 owns the operator runbook. Rationale: verifiers keep the highest ver forever, so a restored server that went backwards would lock its users out of every hosting server and contact that had seen a later state.

Proposed decision: ver increases only on content changes, so two IdentityStates with the same ver MUST have identical content. A verifier that sees the same ver with different content has proof that the home server equivocated (§7.4 step 9). Rationale: the home server refreshes its signature every 12 h; tying ver to content keeps refreshes cheap while turning any split view at one ver into evidence.

7.4 Verification algorithm

VerifyIdentityState(jws, expectedSub) returns a verified state or an identity check result:

  1. If the length exceeds 32,768 bytes or it isn't a compact JWS, fail malformed.
  2. Check the header: alg EdDSA; typ sv-idstate+jwt (else typ_mismatch); kid of the form <domain>#<keyId> (00 §7.6); the header has no member other than alg, typ and kid.
  3. Decode and type-check the payload (§7.1). Fail malformed on a missing or mistyped claim, an unknown sec, a did or inc that doesn't decode to 16 bytes, a duplicate did within devices or within revoked, a did in both lists, idc present with sec insecure, idc absent with sec secure, or non-empty devices with sec insecure. Fail malformed if nbf is present.
  4. Fail subject_mismatch if expectedSub is given and sub doesn't equal it. Fail non_canonical if sub or iss fails 01 §7.5 checks 1 to 5; check 6 is met by step 5 together with the key lookup of step 6 (§4.2).
  5. Fail issuer_mismatch unless iss equals the domain part of sub and the domain part of kid.
  6. Obtain the server key named by kid for iss through discovery (02) or, while a message request isn't yet accepted, from the serverKeys its home server relays in the DmRequest (12 §10.1), for the display-only checks of §14.7, refetching metadata for an unknown kid no more than 02 allows. The key's purpose MUST be sign and its status MUST make it valid for verification under 02's rules. Verify the signature. Fail bad_signature if the key can't be found or the signature fails.
  7. Fail state_stale if iat > now + skew, exp ≤ now − skew, or exp − iat is not in 1 to 86,400.
  8. If sec is secure: run VerifyIdentityCertificate(idc). Fail with its result if it fails. Fail subject_mismatch unless its sub equals sub, and generation_mismatch unless its igen equals igen.
  9. Compare with the verifier store entry S for sub, if any:
    • ver < S.ver: fail state_rollback.
    • ver == S.ver and the content (every claim except iat and exp) differs from S's: fail state_equivocation. Keep S. Report a diagnostic (§13.6).
    • ver > S.ver but igen < S.igen: fail state_rollback.
    • ver > S.ver, igen == S.igen, sec secure in both, and idc differs from S.idc: fail state_equivocation (one IdentityCertificate per generation, §5.2).
    • ver > S.ver, igen == S.igen, and sec differs from S.sec: fail state_equivocation (every change of sec is a generation change, §7.3).
    • ver > S.ver, inc differs from S.inc, and igen ≤ S.igen: fail state_rollback (a new account starts at the previous igen + 1, §11.9).
    • inc equals an incarnation the store has recorded as replaced for this subject: fail state_rollback.
  10. For each revoked[i].rev present: verify it with §8.3 against this state's idc. A rev that fails is ignored (not fatal) and recorded as a diagnostic.
  11. Accept. Update the store: if ver > S.ver, replace S, and if its inc differs from S.inc, record S.inc as replaced for this subject; if ver == S.ver and exp > S.exp, keep the newer signature. Record the kid and iat of the stored state and acceptedAt, the verifier's own clock time when it accepted it. Record every verified DeviceRevocation permanently in the store (§7.5), with the kid, iat and acceptedAt of the state that carried it. Set the validated at time if the state came from a path listed in §13.1.

7.5 Verifier store

Every verifier (hosting server, client) keeps per subject:

Item Kept for
Highest accepted IdentityState, its ver, igen, and the kid and iat it was signed with, and acceptedAt (own clock) Servers: as long as the subject has a membership, session or DM on the server, and at least 30 days after. Clients: as long as the subject has a pin record or shares a context, and at least 30 days after.
Validated-at time Same.
Verified DeviceRevocations, as (sub, did) pairs, each with the kid and iat of the IdentityState that carried it and the acceptedAt of that state Permanently, or as long as the subject's pin or membership exists.
Incarnations of the subject that a newer state replaced (§7.4 step 11) As long as the highest accepted IdentityState is kept

A client MAY keep the store in local storage only. It isn't synchronized between devices; pins are (§16.1).

Revoked server keys. When a verifier learns from the issuer's ServerMetadata (02) that a key with purpose sign has status revoked, it MUST, for every subject of that issuer, stop accepting anything newly presented that is signed by that key, whatever its iat, and discard every stored IdentityState signed by that key unless the verifier itself accepted it before rvt − 60 s by its own clock (acceptedAt, 02 §11.7), together with every DeviceRevocation it learned only from discarded states. The state's iat is never used for this decision, because whoever holds the key can backdate it. A state kept this way stays in the store as the ver baseline, also after it expires. If it discarded the stored state, it treats the subject as having no store entry. In either case it refetches the subject's IdentityState from the home server before relying on it. Rationale: whoever held the compromised key could otherwise sign one state with a huge ver and lock the account out of every verifier for good (§22.6).

7.6 Freshness

Name Definition Used by
Unexpired exp > now − skew Everyone, for every use
Fresh for admission (DM) Unexpired and iat ≥ now − 86400 − skew. Fresh for admission at time t: the same test with t in place of now DM client AS, to admit a new device (§14.2 D4)
Fresh for the channel AS Unexpired and validated at most 300 s ago Hosting server, for every commit that adds or updates a leaf (§13.3); for the UpdatePath of an existing leaf whose credential is byte-identical (L7), an unexpired state suffices when a fresh one can't be obtained (13 §6.1.1, D-083)

Because exp − iat ≤ 86,400, every unexpired IdentityState is at most 24 h old.

7.7 Example

Payload of a secure account with one device and one revoked device (the signed compact form is in §21.4):

{
  "iss": "a.com",
  "sub": "alice@a.com",
  "inc": "sLGys7S1tre4ubq7vL2-vw",
  "ver": 17,
  "sec": "secure",
  "igen": 1,
  "idc": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkY2VydCtqd3QiLCJraWQiOiJrUHJLX3FteFZXYVlWQTl3d0JGNkl1bzN2Vnp6N1R4SENUd1hCeWdyUzRrIn0.eyJzdWIi…",
  "devices": [
    { "did": "q2bS9xVg3m0yJpQe1vT0Aw", "dkf": "FtIu-VbGrfe_KB6CH7GNwODB72MNxj_ml11dEvO-7kk", "plat": "desktop", "since": 1764800000 }
  ],
  "revoked": [
    { "did": "Yx3kP0aL9qR2sT5uV8wZ1A", "at": 1764850000, "rev": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldnJldm9rZStqd3Qi…" }
  ],
  "iat": 1764872400,
  "exp": 1764958800
}

Payload for an insecure account:

{ "iss": "a.com", "sub": "carol@a.com", "inc": "0NHS09TV1tfY2drb3N3e3w", "ver": 1, "sec": "insecure", "igen": 0,
  "devices": [], "revoked": [], "iat": 1764872400, "exp": 1764958800 }

8. DeviceRevocation

8.1 Object

A DeviceRevocation is an optional statement, signed by the identity key, that one device ID is revoked for good. It lets an enrolled device bind the home server: once a verifier has seen it, no later IdentityState can bring that device back for that verifier.

Header: {"alg": "EdDSA", "typ": "sv-devrevoke+jwt", "kid": thumb(ik)}.

Claim Type Required Meaning and constraints
sub string Yes Canonical address.
igen integer Yes The generation of the signing identity key.
did string Yes The revoked device ID.
iat integer Yes Time of signing.

8.2 Rules

  1. Any enrolled device of the account MAY sign one, for any device of the account including itself. Clients SHOULD sign and upload one (§11.7) whenever the user revokes a device from an enrolled device. A device that isn't enrolled can't sign one; the revocation then rests on IdentityState alone (D-017).
  2. A DeviceRevocation covers its did for its sub permanently, in every generation. A home server MUST refuse a DeviceCertificate for a covered did (identity.device_revoked), and in v1 a revoked device record can't be reused (05).
  3. Verifiers accept a DeviceRevocation only from revoked[].rev of an IdentityState verified with §7.4. A DeviceRevocation presented any other way, including the rev member of a device.revoked event (§12.2), is ignored as evidence.

Rationale for rule 3: a thief holding a copy of the identity key could otherwise sign revocations of the victim's devices and present them directly, or through a hosting server that forwards events. Requiring the home server to publish it inside its signed state keeps dual control for revocations too, and once published the home server can't take it back.

8.3 Verification algorithm

VerifyDeviceRevocation(jws, idc) with idc from the same IdentityState:

  1. Length at most 1,024 bytes; compact JWS; header as §5.3 step 2 with typ sv-devrevoke+jwt; payload type-checked. Fail malformed if exp or nbf is present. Else malformed or typ_mismatch.
  2. If igen differs from idc.igen, the revocation can't be verified with the current key: ignore it (not an error).
  3. kid MUST equal thumb(idc.ik) (key_mismatch); verify the signature with idc.ik (bad_signature).
  4. sub MUST equal idc.sub (subject_mismatch).
  5. On success, record (sub, did) as revoked in the verifier store (§7.5).

9. Device validity rule

A device of a secure account is valid for a verifier at time now only if all three conditions hold (D-033):

Condition Checked with
(a) Its DeviceCertificate verifies under the identity key of the subject's current IdentityCertificate. §6.3 with the idc of the IdentityState in (b)
(b) It is listed in devices of an IdentityState that the verifier has accepted (§7.4) and that is fresh for the purpose (§7.6), with dkf equal to thumb(dsk) of that DeviceCertificate. §7.4, §7.6
(c) No DeviceRevocation covers it: its did isn't in that IdentityState's revoked, and the verifier store holds no verified DeviceRevocation for (sub, did). §7.5, §8

IsDeviceValid(sub, devcertJws, state, purpose):

  1. If state.sec isn't secure, return account_insecure.
  2. idc ← VerifyIdentityCertificate(state.idc) (already done by §7.4).
  3. (did, dsk, dbk, plat) ← VerifyDeviceCertificate(devcertJws, idc); return its failure if any.
  4. If state isn't fresh for purpose, return state_stale.
  5. Find e in state.devices with e.did == did. If none, return device_revoked if did is covered by (c), else device_not_listed.
  6. If e.dkf ≠ thumb(dsk), return dkf_mismatch.
  7. If (c) fails, return device_revoked.
  8. Return valid.

Rationale: a home server alone can't satisfy (a) because it lacks the identity key. Someone holding a copy of the identity key can't satisfy (b) without a home session for a device record of the account. A device stays revoked even against a home server that later re-lists it, for every verifier that saw the revocation.

10. The sv_device MLS credential

10.1 Code point and encoding

sv_device is a new MLS credential type with code point 0xF5A0, in the private-use range of the RFC 9420 "MLS Credential Types" registry until it is registered (D-034, 00 §7.15). Its encoding, in the TLS presentation language of RFC 9420:

enum {
    ...
    sv_device(0xF5A0),
    (65535)
} CredentialType;

struct {
    opaque identity_certificate<V>;   /* IdentityCertificate JWS, ASCII */
    opaque device_certificate<V>;     /* DeviceCertificate JWS, ASCII */
} SvDeviceCredential;

struct {
    CredentialType credential_type;
    select (Credential.credential_type) {
        case basic:     opaque identity<V>;
        case x509:      Certificate certificates<V>;
        case sv_device: SvDeviceCredential sv_device;
    };
} Credential;
  • Each vector holds the JWS compact serialization exactly as issued: ASCII bytes, no padding, no trailing white space, no terminator.
  • Each vector is 1 to 2,048 bytes long. Its length uses the RFC 9420 §2.1.2 variable-length integer with the minimum number of bytes.
  • A parser MUST reject a credential with trailing bytes inside the sv_device structure, a vector outside these bounds, or a vector containing bytes outside the base64url alphabet and ..

10.2 Leaf rules

These rules hold in every MLS group of every Sloppy Voice context (00 HP-1 item 6). The hosting server enforces them before sequencing (§13.3, §14.6). Clients enforce them as the table says.

ID Rule Client enforcement
L1 Every leaf's credential is of type sv_device. basic and x509 are forbidden. Every LeafNode's capabilities.credentials MUST include 0xF5A0, and the group's required_capabilities (13) lists it. MUST (invalid)
L2 The leaf's signature_key equals raw(dsk) of the credential's DeviceCertificate. MUST (invalid)
L3 encryption_key is fresh for each leaf, as RFC 9420 requires (13). MUST (RFC 9420)
L4 A group never contains two leaves with the same (sub, did), except inside one commit that also removes the older leaf: a resync external commit that removes the device's own old leaf (13), or a commit under L8. A device that re-enrols after a reset keeps its did (05, 08), so its new leaf always needs one of these. MUST (invalid)
L5 All leaves of one sub carry byte-identical IdentityCertificates, apart from leaves that the hosting server has proposed to remove: the target of a Remove proposal pending in the current epoch, or, right after an external commit, of a Remove proposal the server reissues in the new epoch (13, 00 HP-3). A client evaluates L5 on the tree after a commit, and for an external commit only once the server's reissued proposals for that epoch have arrived (or 60 s have passed). DMs: MUST (invalid). Channels: diagnostic only (§13.6).
L6 No leaf's signature_key equals the identity key of any leaf's IdentityCertificate in the group. The identity key is never a leaf key. MUST (invalid)
L7 A leaf's credential never changes in place. The LeafNode in an Update proposal or an UpdatePath MUST carry a credential byte-identical to the one the leaf already has. A device whose credential changes (a new generation) joins as a new leaf. MUST (invalid, credential_changed)
L8 A member commit that admits a leaf whose IdentityCertificate differs from that of existing leaves of the same sub MUST, in the same commit, remove every leaf of sub that carries the older IdentityCertificate: by reference to the hosting server's Remove proposals, or by value where 13 allows members to remove. An external commit can't carry proposals by reference (RFC 9420 §12.4.3.2), so for it the hosting server issues or reissues the Remove proposals in the new epoch instead (§13.3 C7). DMs: MUST (invalid). Channels: enforced by the server.

Proposed decision: credentials are immutable per leaf (L7), and there is exactly one IdentityCertificate per generation and one DeviceCertificate per (generation, device). Rationale: byte equality makes L5 a byte comparison and leaves no room for a server or member to swap a credential under an existing leaf.

The MLS application identity of a leaf is the pair (sub, did). For the "same client" checks of RFC 9420 (an Update or UpdatePath that replaces a leaf, and the Remove of the joiner's own leaf in a resync external commit, §12.4.3.2), two leaves are the same client exactly when their (sub, did) are equal. A resync external commit may therefore remove the device's own leaf of a lower igen, whose credential differs. A person in a roster is a sub. Clients group leaves by sub and show one person per address (00 HP-1 item 8).

10.3 KeyPackages

A KeyPackage's leaf follows L1, L2 and L6 and carries the device's credential for the current generation. A KeyPackage whose credential is of an older generation is invalid. The home server deletes an account's KeyPackages of an older generation at a reset or downgrade (§15.2), and refuses to accept new ones whose credential doesn't match the account's current IdentityState (13 owns the KeyPackage endpoints and applies this check).

10.4 Credential validation (the local check)

ValidateSvDeviceCredential(credential, signature_key) returns (sub, ik, igen, kind, did, dsk, dbk, plat) or an identity check result. A client that shares history (14) takes each recipient device's dbk from this tuple. It needs no network access.

  1. If credential_type isn't 0xF5A0, fail wrong_credential_type.
  2. Parse SvDeviceCredential (§10.1). Fail malformed on any encoding error.
  3. idc ← VerifyIdentityCertificate(identity_certificate) (§5.3).
  4. (did, dsk, dbk, plat) ← VerifyDeviceCertificate(device_certificate, idc) (§6.3).
  5. If signature_key (32 bytes) isn't equal to dsk, fail dsk_mismatch.
  6. Return the tuple.

Who runs it, and when:

Where Hosting server Client
External commit's new leaf MUST MUST
UpdatePath LeafNode, Update proposal MUST MUST
KeyPackage in an Add proposal (DMs only) MUST MUST
Every leaf of the ratchet tree in a Welcome or in GroupInfo used for an external join — MUST, for every leaf
KeyPackages the client claimed before building a Welcome — MUST

The context-specific checks that follow the local check are in §13 (channels) and §14 (DMs).

10.5 Group-level checks

After applying a commit (or when joining), a client checks L4, L6 and L7 for the whole tree and, in DMs, L5 and L8. A server checks them before it sequences a commit. A failure makes the commit invalid. The client doesn't process it and handles it as a positive rejection under 13 §15.4: it posts an MlsReport of kind verification_failed whose reason is the identity check result, and follows 13's state machine from there.

10.6 Identity check results

These values are diagnostic detail. They appear in the reason of MlsReports (13 §7.10), in data.reason of mls.credential_rejected (§13.3; 13 §6.1.1 owns the code), in data.reason of identity.invalid_certificate (§19), in data.identityReason of 06's federation.identity_mismatch and federation.device_proof_invalid, and in identity diagnostics (§13.6). A receiver MUST treat an unknown value as a generic failure. Clients use them only for diagnostics, apart from the retry rules 13 attaches to mls.credential_rejected reasons.

Value Meaning
malformed Encoding, JSON, type or size error in a credential or identity object.
typ_mismatch Wrong JWS typ.
bad_signature A signature doesn't verify, or its key can't be found.
non_canonical A sub fails 01 §7.5 (isCanonical). Where an HTTP error is returned it is address.non_canonical (01); this value is diagnostic detail only.
subject_mismatch Two objects, or an object and its context, name different addresses.
issuer_mismatch IdentityState iss isn't the home domain of sub.
generation_mismatch igen values that must match don't.
key_mismatch A kid doesn't match the identity key, or the leaf's identity key differs from the IdentityState's.
kind_mismatch kind and plat disagree, or kind differs from the account kind.
identity_key_as_leaf A DSK or leaf key equals an identity key (L6).
dsk_mismatch The leaf's signature_key isn't the DeviceCertificate's DSK (L2).
dkf_mismatch The IdentityState lists the device with a different dkf.
device_not_listed The device isn't in the IdentityState's devices.
device_revoked The device is covered by a revocation.
device_mismatch The leaf's did isn't the device of the session that submitted it.
account_insecure The IdentityState says sec: insecure.
state_stale No IdentityState fresh enough for the purpose (§7.6).
state_unavailable The IdentityState couldn't be fetched. Transient: the only retryable reason of mls.credential_rejected (§13.3, 13 §6.1.1 A3).
state_rollback An IdentityState with a lower ver, or a lower igen, than one already accepted, or with an incarnation (inc) that a later one replaced or that doesn't start a new generation (§7.4 step 9).
state_equivocation Two IdentityStates with the same ver and different content, two IdentityCertificates for one generation, or a change of sec without a change of igen.
duplicate_device_leaf L4 violated.
mixed_identity L5 or L8 violated.
credential_changed L7 violated.
wrong_credential_type L1 violated.
not_participant The person isn't in sv_participants with this identity key (DMs).
pin_mismatch The identity key differs from the client's pin and no home-signed evidence supports the change (§16.4).
not_permitted The account may not be in the context (not an active member, banned, lacking view_channel, or needs_encryption; C9). Not an identity check; reported through 13's mls.credential_rejected with data.membershipCode.

11. Endpoints

11.1 Common rules

  • All endpoints follow 00 §7.3 and 03: JSON bodies, CORS, problem details (00 §7.9), rate limits (00 §7.11).
  • GET /v1/users/{local}/identity is public. Every /v1/me/identity… endpoint requires a home session (Authorization: Bearer, 05) or, for a bot account, a bot token (Authorization: Bot, 05). A remote session token is refused with 403 core.forbidden.
  • The calling device is the device record bound to the session or bot token (05). Its did is the session's device.
  • {local} is a local part as 01 defines it, percent-encoded UTF-8 in the path. The server applies 01 §9.2's path-parameter processing: it looks up minimalPrepare of the decoded segment, so grandfathered local parts keep resolving (01 §5.8, AD-14), and runs the full profile only to explain a miss. A segment that fails processing returns 400 address.invalid_local_part with 01's reason.
  • Mutating endpoints accept Idempotency-Key (00 §7.11). Each also has the natural idempotency described with it.

IdentityResponse (returned by every endpoint in this section except where stated):

Member Type Required Meaning
address string Yes The canonical address.
state string Yes The current IdentityState JWS.
deviceCertificates array of string Yes The DeviceCertificate JWS of each entry of devices, in the same order. Empty when the account is insecure.

Rationale for deviceCertificates: a verifier that sees a DSK only through the dkf thumbprint can't show a device list or check a DeviceProof without the certificate. Serving the certificates beside the state costs little and saves a lookup per device.

11.2 GET /v1/users/{local}/identity

Returns the public identity of any account homed on this server.

Authentication None. A server MAY send an sv-s2s+jwt (06) to obtain a higher rate limit.
CORS Yes (00 §7.3)
Response 200 IdentityResponse
Caching Cache-Control: public, max-age=N with N ≤ 60. ETag changes whenever the served JWS changes. The server MUST answer If-None-Match with 304 when nothing changed.
Rate limit At least 120 requests per minute per client IP address, and at least 1,200 per minute per authenticated federation peer. Over the limit: 429 core.rate_limited.

Errors:

Condition Response
The local part is invalid 400 address.invalid_local_part (01 §9.2)
No account has this local part (including a channel's local part) 404 identity.not_found
The account was deleted and the local part is in quarantine (01) 410 identity.account_deleted

Example:

GET /server/v1/users/alice/identity HTTP/1.1
Host: chat.a.com
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: public, max-age=60
ETag: "17-1764872400"
Access-Control-Allow-Origin: *

{
  "address": "alice@a.com",
  "state": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkc3RhdGUrand0Iiwia2lkIjoiYS5jb20jMjAyNi0xMmEifQ.eyJpc3MiOiJhLmNvbSIs…",
  "deviceCertificates": [
    "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldmNlcnQrand0Iiwia2lkIjoia1ByS19xbXhWV2FZVkE5d3dCRjZJdW8zdlZ6ejdUeEhDVHdYQnlnclM0ayJ9.eyJzdWIi…"
  ]
}

Privacy note: the response shows whether an account is secure, how many enrolled devices it has, their platforms and when each was added. 01's address lookup already reveals that the account exists. §22.8 discusses this exposure.

11.3 GET /v1/me/identity

Returns the caller's own identity, plus the calling device's status.

Response 200: IdentityResponse plus:

Member Type Required Meaning
thisDevice object Yes {"did": string, "enrolled": boolean}. enrolled is true when did is listed in devices.

Clients MUST call it, or read the own state from an equivalent source (§18.4), at every start and after every reconnect of the home event WebSocket.

11.4 PUT /v1/me/identity — turn on encryption

Registers a new identity for an insecure account: the first upgrade (HP-12, 08) or a re-upgrade after a downgrade (§15.5).

Request:

Member Type Required Meaning
identityCertificate string Yes New IdentityCertificate with igen = expectedIgen + 1.
deviceCertificate string Yes DeviceCertificate for the calling device under that certificate.
expectedIgen integer Yes The account's current igen, as the client last saw it.

Authentication: fresh authentication as 05 §9 defines with maxAgeMs 86,400,000 (the session's authAt at most 24 h old, D-085), or, for a bot account, its bot token (05 §15.5). Otherwise 403 auth.reauth_required (05) with data.maxAgeMs 86400000 and data.providers; the client follows 05 §9.2 and retries once (08 §3.4). The check comes before step 1, so a replay needs it too. The same rule applies to the re-upgrade of §15.5, which uses this endpoint. Rationale: the first identity key of an account is pinned silently by every DM contact (§16.2), so attaching it must need more than a stolen access or refresh token. 24 h keeps it one tap for almost everyone, because people usually turn encryption on soon after signing in (§22.4, 22 RR-10).

Processing, in order:

  1. If the account is already secure: if identityCertificate is byte-identical to the current idc and deviceCertificate is byte-identical to the calling device's registered certificate, answer 200 with the IdentityResponse (replay). Otherwise fail 409 identity.already_secure. The client then offers "Approve this device" (pairing, 08).
  2. If expectedIgen isn't the current igen: 409 identity.generation_mismatch.
  3. Verify the IdentityCertificate (§5.3); failure: 400 identity.invalid_certificate. If sub fails 01 §7.5: 400 address.non_canonical. If sub isn't the account's canonical address: 403 identity.subject_mismatch. If its igen isn't expectedIgen + 1: 409 identity.generation_mismatch. If kind isn't the account's kind: 400 identity.invalid_certificate (kind_mismatch).
  4. If thumb(ik) is in the account's key history (§3.4): 409 identity.key_reused.
  5. Verify the DeviceCertificate under it (§6.3); failure: 400 identity.invalid_certificate. If did isn't the session's device: 403 identity.device_mismatch. If the device record is revoked or the did is covered by a DeviceRevocation: 403 identity.device_revoked. If plat doesn't match the device record: 400 identity.invalid_certificate (kind_mismatch). If thumb(dsk) is in the key history or equals thumb(ik): 409 identity.key_reused.
  6. Count this request toward the generation-change limit (§20); over it: 429 core.rate_limited.
  7. For an account with kind: "user", find the staged KeyBackup whose igen and ikf match the new IdentityCertificate (08 §5.6.3). If there is none: 409 backup.required (08), with no change. Bot accounts are exempt (08).
  8. Apply atomically: sec ← secure; igen ← expectedIgen + 1; store idc and the DeviceCertificate; devices ← [the calling device, since = now]; add both thumbprints to the key history; ver ← ver + 1; sign the new IdentityState. In the same transaction, activate the staged KeyBackup as 08 §5.6.3 specifies, and, through 05, set the calling device record to enrolled, set every other device record of the account to not enrolled, and move the account from upgrade_required to active if it was there.
  9. After commit, send identity.changed with change: "upgraded" (§12.1) to the account's own devices and its audiences (06).

Response 200: IdentityResponse.

Before calling, a user client MUST stage the KeyBackup for the new identity (PUT /v1/me/backup with "stage": true, 08 §5.6). Rationale: activating the backup in the same transaction means a secure user account never exists, even for a moment, without a recovery path (08).

11.5 POST /v1/me/identity/devices — register this device

Registers the calling device's DeviceCertificate under the current identity, after pairing or recovery (08). This is the step that makes the device enrolled.

Request:

Member Type Required Meaning
deviceCertificate string Yes The calling device's DeviceCertificate.
expectedIgen integer Yes The current igen as the client last saw it.

Before calling, the client MUST fetch GET /v1/me/identity and check that the IdentityCertificate it received by pairing or from the KeyBackup is byte-identical to the current idc. If it isn't, the identity it holds is outdated: it MUST NOT register, MUST discard the received identity key, and tells the user the pairing or recovery key belongs to an earlier setup (08, 20).

Processing, in order:

  1. If the account is insecure: 409 identity.not_secure.
  2. If expectedIgen or the certificate's igen isn't the current igen: 409 identity.generation_mismatch.
  3. Verify the certificate under the current idc (§6.3); failure: 400 identity.invalid_certificate. did not the session's device: 403 identity.device_mismatch. Device record revoked or did covered: 403 identity.device_revoked. plat mismatch: 400 identity.invalid_certificate.
  4. If the device is already listed: byte-identical certificate, answer 200 with the IdentityResponse; different certificate, 409 identity.device_conflict.
  5. If thumb(dsk) is in the key history or equals the identity key's: 409 identity.key_reused.
  6. If devices already has maxEnrolledDevices entries (§20): 409 identity.too_many_devices.
  7. At most 10 registrations per account per hour: otherwise 429 core.rate_limited.
  8. Apply atomically: append the device with since = now; add thumb(dsk) to the key history; ver ← ver + 1; sign. Through 05, mark the device record enrolled.
  9. After commit, send identity.changed with change: "device_added" to own devices (W4c, §18.3) and audiences.

Response 201: IdentityResponse.

11.6 POST /v1/me/identity/reset — reset or turn off encryption

Replaces the account's identity with a new identity key (mode: "new_key") or turns encryption off (mode: "downgrade", which counts as a reset, D-019). It takes effect at once, with no waiting period, even from a device that isn't enrolled (D-071).

Request:

Member Type Required Meaning
mode string Yes new_key or downgrade. Unknown values: 400 core.invalid_request.
expectedIgen integer Yes The current igen as the client last saw it.
identityCertificate string When new_key New IdentityCertificate with igen = expectedIgen + 1.
deviceCertificate string When new_key The calling device's DeviceCertificate under it.
keyPackages object No new_key only: a KeyPackageUpload (13 §9.2: keyPackages, at most 10 here, and lastResort) for the calling device under the new certificates. User clients SHOULD send at least lastResort (08 §11.2 S5), so that a DM participant's client can re-add the device by Welcome as soon as it learns of the reset (12 §11.5). Present with downgrade: 400 core.invalid_request.

Authentication: fresh authentication as 05 §9 defines (the session's authAt at most 600 s old), or, for a bot account, its bot token (05 §15.5). Otherwise 403 auth.reauth_required (05) with data.maxAgeMs and data.providers; the client follows 05 §9.2 and retries once. Rationale: a reset is the most damaging thing a session can do, so it needs the same fresh proof of the person as linking a provider (05 P-05-8). Re-authentication isn't a hold, so D-071 is respected.

Before calling with new_key, a user client MUST stage the KeyBackup for the new identity (PUT /v1/me/backup with "stage": true, 08 §5.6), as for §11.4.

Processing, in order:

  1. Replay. If the current igen equals expectedIgen + 1 and the request matches the last applied generation change, answer 200 with the IdentityResponse and change nothing. A new_key request matches when its certificates are byte-identical to the current idc and the calling device's registered DeviceCertificate (keyPackages isn't compared). A downgrade request matches when the account is insecure and its last generation change was a downgrade initiated by the calling device.
  2. If the account is insecure: 409 identity.not_secure.
  3. If mode is downgrade and the home server is a secure server: 409 identity.downgrade_not_allowed (SM-3).
  4. If expectedIgen isn't the current igen: 409 identity.generation_mismatch.
  5. For new_key: steps 3 to 5 of §11.4, unchanged. Then, if keyPackages is present, validate it as 13 §9.2 does, against the new IdentityCertificate and the calling device's new DeviceCertificate (credential sub the account, did the calling device, igen = expectedIgen + 1); on failure answer 400 mls.keypackage_invalid with 13's data, and apply nothing.
  6. Count the request toward the generation-change limit (§20); over it: 429 core.rate_limited.
  7. For new_key on an account with kind: "user": step 7 of §11.4 (409 backup.required if no matching KeyBackup is staged).
  8. Apply the reset procedure of §15.2 atomically.

Response 200: IdentityResponse.

11.7 POST /v1/me/identity/revocations — upload a DeviceRevocation

Request:

Member Type Required Meaning
revocation string Yes A DeviceRevocation JWS (§8).

Processing, in order:

  1. If the account is insecure: 409 identity.not_secure.
  2. Verify it (§8.3) against the current idc. A revocation whose igen isn't current: 409 identity.generation_mismatch. Other failures: 400 identity.invalid_certificate.
  3. If did isn't a device record of this account (05): 404 identity.unknown_device.
  4. Authentication. If the device record of did is still active (not revoked in 05) and did isn't the session's device, the request needs fresh authentication as 05 §9 defines; otherwise 403 auth.reauth_required (05). A bot token can't revoke another active device here (bot.not_allowed, 05 §15.5). Attaching a rev to a device that is already revoked, or revoking the calling device itself, needs none. Rationale: a thief with a stolen enrolled device holds both a home session and the identity key; without this rule they could permanently revoke every other device of the owner without the provider login that 05's own device revocation requires.
  5. If the device record is active, revoke it through 05's device revocation with reason removed (05 §13, as if the user had revoked it there), which runs §11.8; attach rev to the device's RevokedEntry in the same transaction. If the device wasn't listed in devices (an unenrolled device), §11.8 step 2 still adds a RevokedEntry {did, at: now, rev}, with ver + 1.
  6. If the device record is already revoked and revoked has an entry for it without rev: attach rev, increase ver and sign, then send device.revoked (§12.2) again.
  7. If the device record is already revoked and revoked has no entry for it (it was revoked in an earlier generation, or its entry was pruned): add {did, at, rev} to revoked, with at = 05's revokedAt as a NumericDate (subject to §7.2 rule 7), increase ver and sign, then send device.revoked.
  8. If its entry already has a rev, change nothing.

Response 200: IdentityResponse.

Any device of the account with a home session may call it, subject to step 4, including the device being revoked. The identity-key signature shows that the caller holds the identity key.

11.8 Device revocation (hook called by 05)

05 owns device revocation (D-017): by the user, by an admin, at sign-out, or 12 h after the last activity of a shared-computer device.

A DeviceRevocation supplied to 05. When 05's POST /v1/me/devices/{did}/revoke or POST /v1/auth/logout (scope: current) carries a revocation, the home server checks it before 05 §13 step 1: the account is secure; the revocation passes §8.3 against the current idc; its sub is the account's canonical address; its igen is the current one; and its did is the device being revoked. On any failure 05 answers 400 device.revocation_invalid and revokes nothing. A revocation that passes is the rev of steps 1 and 2.

In the same transaction as 05's revocation, the home server MUST:

  1. If the device is listed in devices: remove it, add {did, at: now} to revoked (with rev if one was supplied through §11.7 or 05), increase ver, and sign a new IdentityState.
  2. If it isn't listed (an unenrolled device, or a device of an insecure account): leave the IdentityState unchanged, except when a DeviceRevocation was supplied for an unenrolled device of a secure account (through §11.7 step 5 or 05); then add {did, at: now, rev} to revoked, increase ver and sign.
  3. After commit, send device.revoked (§12.2) to the account's own devices and its audiences (06). This happens in both cases, because audiences use it to end the device's remote sessions (06).

The vault key rotation that follows a revocation is specified in 08 (D-054).

11.9 Account deletion

When an account is deleted (05):

  1. GET /v1/users/{local}/identity answers 410 identity.account_deleted while the local part is in quarantine (01), and 404 identity.not_found after that, until the local part is registered again.
  2. The home server MUST keep, for the canonical address, the last ver, the last igen, the key history (§3.4) and every inc the address has had, for as long as the local part can ever be registered again.
  3. If the local part is registered again, the new account's first IdentityState has ver = last ver + 1, igen = last igen + 1, and a new inc (05 §11.1) that differs from every earlier one.
  4. Verifiers treat account.deleted (05) and a 410 identity.account_deleted as positive evidence for removing every leaf of the subject (§13.4, §14.4).
  5. Verifiers treat the first IdentityState with a new inc as a different account, never as a reset: servers apply 06 §11.6, and clients apply §16.4's new-account evidence and §16.8.

Rationale: a contact's pin and verifier store survive deletion, so whoever registers the address later is a new account to them: the IdentityState can't roll back, its inc differs, and contacts see W2's new-account wording rather than a key change (§16.8, D-086).

12. Events

identity.changed and device.revoked are both S2S events (delivered by 06's event ingest) and client events (delivered over the event WebSocket, 03). Their payload, the envelope d member on the WebSocket and the event body in S2S delivery, is the same apart from actor. A third type, identity.refresh_hint, is a client event only (§12.3).

Type Transport Class Stream Payload
identity.changed S2S (06) and client WebSocket s2s; client: durable me at the subject's home server §12.1
device.revoked S2S (06) and client WebSocket s2s; client: durable me at the subject's home server §12.2
identity.refresh_hint Client WebSocket ephemeral me at a DM hosting server, targeted at the sessions of DM participants §12.3

12.1 identity.changed

Sent when an account's identity generation, security state or device set grows: upgrade, re-upgrade, reset, downgrade or device registration. A device revocation and a later DeviceRevocation upload produce device.revoked only, never identity.changed. A prune of revoked (§7.2 rule 7) produces no event; verifiers pick up the new ver with their next fetch.

Member Type Required Meaning
sub string Yes Canonical address of the subject.
change string Yes upgraded, reset, downgraded or device_added. Receivers MUST treat an unknown value as an unspecified change and act only on state.
ver integer Yes ver of state.
igen integer Yes igen of state.
prevIgen integer Yes igen before the change.
sec string Yes sec of state.
state string Yes The IdentityState JWS after the change.
device object When change is device_added {"did": string, "plat": string} of the added device.
actor object Only on delivery to the subject's own devices {"did": string, "plat": string, "changedAt": string}: the initiating device and the time of the change (RFC 3339). It MUST NOT be sent S2S or to anyone else.

Example (S2S body):

{
  "sub": "saxonjones@sloppyvoice.com",
  "change": "reset",
  "ver": 42,
  "igen": 3,
  "prevIgen": 2,
  "sec": "secure",
  "state": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkc3RhdGUrand0Iiwia2lkIjoic2xvcHB5dm9pY2UuY29tIzIwMjYtMTJhIn0.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20i…"
}

Example (WebSocket envelope to one of the subject's own devices):

{
  "v": 1,
  "t": "identity.changed",
  "id": "01938f40-2a1b-7c3d-8e4f-5a6b7c8d9e0f",
  "ctx": "me",
  "seq": 78,
  "ts": "2026-12-04T18:20:00.412Z",
  "d": {
    "sub": "saxonjones@sloppyvoice.com",
    "change": "reset",
    "ver": 42,
    "igen": 3,
    "prevIgen": 2,
    "sec": "secure",
    "state": "eyJhbGciOiJFZERTQSIs…",
    "actor": { "did": "Zm9vYmFyYmF6cXV4MTIzNA", "plat": "web", "changedAt": "2026-12-04T18:19:59.871Z" }
  }
}

12.2 device.revoked

Sent when a device of an account is revoked (§11.8), and again when a DeviceRevocation is attached later (§11.7).

Member Type Required Meaning
sub string Yes Canonical address of the subject.
did string Yes The revoked device.
revokedAt string Yes RFC 3339 time of the revocation (the RevokedEntry at, when there is one).
igen integer Yes Current igen.
dkf string When the device was listed Thumbprint of the revoked device's DSK.
ver integer Yes ver of state.
state string Yes The IdentityState JWS after the revocation. For an unlisted device it is the unchanged current state.
rev string No The DeviceRevocation JWS, if one exists. A hint only: it counts as evidence only inside state (§8.2 rule 3).
actor object Only to own devices As in §12.1.
{
  "sub": "alice@a.com",
  "did": "Yx3kP0aL9qR2sT5uV8wZ1A",
  "revokedAt": "2025-12-04T12:06:40.000Z",
  "igen": 1,
  "dkf": "3n8sJ2qLx0rVt5wYb7cE1fH4kM6pR9uZ2aD5gJ8mQ1s",
  "ver": 17,
  "state": "eyJhbGciOiJFZERTQSIs…",
  "rev": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldnJldm9rZStqd3Qi…"
}

12.3 Delivery and processing

Path Sender Event Receivers WebSocket ctx Class
S2S Subject's home server identity.changed, device.revoked Every server in the account's audience set as 06 §11.1 defines it. Target 10 s. — Retried for up to 24 h (06)
Own devices Subject's home server identity.changed, device.revoked (with actor) Every session of every device of the subject, including unenrolled ones me Durable (replayed on resume)
DM participants Each DM hosting server that received an S2S identity.changed or device.revoked identity.refresh_hint Every session, other than the subject's, of every participant of every DM and group DM it hosts that includes the subject, once per session me (targeted) Ephemeral
Channel members Not delivered. Channel members learn identity changes only from the IdentityState annotations on mls.handshake (13, §13.5).

identity.refresh_hint (client WebSocket only, ephemeral, never replayed):

Member Type Required Meaning
sub string Yes Canonical address of the subject.
ver integer Yes ver of state.
state string Yes The IdentityState JWS the hosting server received with the S2S event.

A client that receives it verifies state with §7.4 and treats it as a source of evidence under §14.1. A client that missed it (it is never replayed) learns the same change from the next mls.handshake annotation or its own refetch (§14.1). Rationale: one event type has one class (03 §11.2); the hint keeps the durable events on the subject's own me stream at the home server, while DM participants still hear about a change within seconds.

Every receiver of identity.changed or device.revoked MUST:

  1. Verify state with §7.4, with expectedSub = sub.
  2. If state fails because it has expired (an S2S retry can arrive up to 24 h late), fetch GET /v1/users/{local}/identity from the subject's home server and continue with that result. If it fails for any other reason, don't use it as evidence and record a diagnostic; the exception in step 3 still applies.
  3. Use only the verified state as evidence. change, ver, igen, prevIgen, sec, device, did, revokedAt, dkf and rev are hints. If they disagree with the state, ignore them. Exception: for an S2S device.revoked that passed 06's subject binding (06 §10.1), the subject's home server is authoritative for its own device records, so a receiver ends the remote sessions of (sub, did) and records 06's revocation mark from the event alone (06 §11.4), whatever state says. Removing MLS leaves (§13.4, §14.4) and changing pins (§16.4) still require the verified state.
  4. Deduplicate by event ID (06) and process idempotently.

A hosting server that receives either event over S2S MUST, in addition: replace its cached state and set its validated-at time (§13.1); apply §13.4 to every channel group and the removal rules of 13 to every DM group where the subject has leaves; end the revoked device's remote sessions within 60 s (06); and send identity.refresh_hint to DM participants as the table says.

A client processes the event as §16.4 (for a contact) or §18 (for its own account).

13. Authentication Service rules for channels

In a channel the hosting server is the MLS Authentication Service (D-035). Clients accept its decisions and run silent checks only.

13.1 The hosting server's identity cache

The hosting server keeps a verifier store (§7.5) for every subject that has a remote session, membership or leaf on it. A cached IdentityState is validated at a time T when it was obtained, and verified with §7.4, by one of these paths at T:

  1. A GET /v1/users/{local}/identity that the hosting server sent itself to the subject's home server (resolved through 02).
  2. The IdentityState that accompanied a HomeAssertion the hosting server verified (06), when the assertion's igen, ikf and dkf match the state and the state's ver is at least the assertion's isv (06). T is the assertion's iat. Rationale: the home server only issues assertions for listed devices, and isv names the state the claims were derived from, so a client can't present an older state of the same generation (for example one from before another device was revoked).
  3. An identity.changed or device.revoked S2S event from the subject's home server (authenticated per 06). T is the time of receipt.

An IdentityState relayed by a client in any other way never sets the validated-at time.

13.2 At remote session creation

When 06 creates a remote session for an enrolled device of a secure account, the hosting server MUST verify the IdentityState (§7.4) and check that the device is valid (§9) with the state fresh for the channel AS (§7.6). 06 owns the request, the response and the error codes, and carries the identity check result in data.identityReason of its error (§10.6).

13.3 Checks for every commit

For every commit to a channel group that adds or updates a leaf (an external commit, or a member commit with an UpdatePath), the hosting server MUST, before sequencing it:

# Check Failure result
C1 ValidateSvDeviceCredential (§10.4) on the new or updated leaf. as returned
C2 The leaf's sub is the session's account and its did is the session's device. In a channel, a commit only adds or updates its committer's own leaf (13). subject_mismatch, device_mismatch
C3 The server holds an IdentityState for sub that is fresh for the channel AS (validated at most 300 s ago and unexpired). If not, it fetches one (path 1 of §13.1) with a 5 s timeout. Exception: for a member commit's UpdatePath of an existing leaf whose credential is byte-identical (L7), if no fresh state can be obtained because the home server can't be reached, the newest unexpired state the server holds (at most 24 h old) suffices (13 §6.1.1, D-083). A new leaf always needs a fresh state. state_unavailable (retryable, 13 §6.1.1 A3)
C4 sec is secure and the credential's IdentityCertificate is byte-identical to the state's idc. account_insecure, generation_mismatch or key_mismatch
C5 IsDeviceValid (§9) holds. as returned
C6 L4: no other leaf has the same (sub, did), unless this external commit removes it. duplicate_device_leaf
C7 L5 and L8: every other leaf of sub with a different IdentityCertificate is a leaf the server has proposed to remove. Because C3 gives the server positive evidence (§13.4), it issues those Remove proposals if they're missing. For an external commit, which can't include them by reference, it accepts the commit and then reissues the Remove proposals in the new epoch at once (13, 00 HP-3). mixed_identity
C8 L6 and L7. identity_key_as_leaf, credential_changed
C9 The account may join the channel and isn't banned (09, 10). These aren't identity checks. as 09 and 10 define (answered as mls.credential_rejected with reason not_permitted and data.membershipCode, 13 A5)

The wire answer belongs to 13 (§6.1.1, A1–A6). A failure answers 403 mls.credential_rejected with data.reason set to the identity check result of §10.6 and data.subject set to the leaf's canonical address (sub). A C9 failure has reason not_permitted and carries data.membershipCode (13 A5). If C3 can't obtain a state, the reason is state_unavailable, the only retryable reason, with retryAfterMs 30,000 (13 A3). During a home-server outage, new secure joins from that home therefore wait (06).

13.4 Removal triggers

Whenever the hosting server accepts a new verified IdentityState S' for subject X (S'.ver higher than its cached state), it MUST determine the leaves of X that S' makes stale, in every channel group:

Condition in S' Stale leaves Other effect
sec is insecure Every leaf of X X's channel memberships move to needs_encryption (09)
igen is higher than a leaf's igen Those leaves —
A leaf's did isn't in devices That leaf —
A leaf's did is covered by a revocation That leaf —
inc differs from the incarnation the server recorded for X Every leaf of X As for deletion evidence below: the earlier account's memberships change as 09 specifies for a deleted account, and 13 removes the leaves with reason account_deleted, not identity_changed (06 §11.6, D-086)

The same applies to deletion evidence: when the hosting server receives account.deleted (05) for X's recorded incarnation, or a 410 identity.account_deleted for X from X's home server, every leaf of X is stale, and memberships change as 09 specifies for a deleted account.

It then runs the removal procedure of 13 for the stale leaves: delivery cut, lease revocation, Remove proposals, content freeze and designated committer (D-037).

The hosting server MUST NOT remove a leaf only because its cached IdentityState expired or the home server is unreachable. It SHOULD refetch, in the background, the IdentityState of every subject that has leaves in any secure group it hosts, at least once every 24 h, spreading the fetches over the day and limiting them per home server, so it notices changes whose S2S events were lost or that it never received (for example because it isn't in the subject's audience set, 06 §11.1).

13.5 IdentityState annotations

Every mls.handshake event (13) for a commit that adds or updates a leaf MUST carry, for the leaf's subject, the IdentityState JWS the server used in C3. A commit that covers removals the server made under §13.4 SHOULD carry the IdentityState that caused them. 13 owns the member name. The same rule applies to DM groups (§14.6), where the server runs C3 only for new devices: there a handshake carries the state used for that check or, for other commits, the latest state the server holds for the subject (13).

13.6 Silent checks by member clients

A member client of a secure channel:

# Requirement
S1 MUST run ValidateSvDeviceCredential (§10.4) on every leaf a commit adds or updates, and on every leaf of the tree when it joins. It MUST check L1, L2, L4, L6 and L7. A failure makes the commit (or the GroupInfo) invalid: the client handles it as a positive rejection under 13 §15.4 (MlsReport verification_failed with the identity check result in reason). An honest hosting server never sequences such a commit.
S2 SHOULD verify each annotated IdentityState (§7.4) in the background and check that it backs the leaf (C4, C5). The freshness test is "unexpired at the commit's server timestamp (ts)", so a commit processed late, for example from a backlog after the client was offline, doesn't produce a spurious state_stale. It SHOULD limit this to 20 discovery lookups of new home servers per minute and skip the rest.
S3 SHOULD record an L5 violation as a diagnostic, not as an invalid commit.
S4 MUST report every failure of S2 or S3, subject to the device's diagnostics setting (20 §17; with off, nothing is uploaded to /v1/diagnostics): as an identity diagnostic (below) through POST /v1/diagnostics (15 §14.3), both to the hosting server (with its session there) and to its own home server. These failures are never sent as MlsReports (13 §7.10).
S5 MUST NOT show the user any warning, prompt or badge change caused by S1 to S4, or by another member's new device, removed device or reset (00 §4.12.5, D-035). The only identity alerts in a channel are the self-alerts of §18.
S6 MUST NOT create pin records from channel rosters.

Identity diagnostic: the data object of a 15 diagnostic report whose kind is identity_check; the envelope's ctx is the context and its createdAt the observation time:

Member Type Required Meaning
subject string Yes Canonical address of the member
did string No Device ID of the leaf
reason string Yes Identity check result (§10.6)
ver integer No ver of the IdentityState involved

13.7 Known-contact badge

A client MAY show a positive "known contact" badge next to a channel member when the user has a pin record for the member's address in state pinned, verified, changed or accepted, and the member's leaves carry exactly the pinned identity key. It MAY show a stronger "verified" variant when the state is verified. In every other case, including states verified_blocked, downgraded, downgraded_blocked and new_account, no pin, or a different key, the client shows nothing. The absence of the badge MUST NOT be presented as a warning, a tooltip or any negative indicator.

Rationale: channels must stay silent about other people's identities (D-035), but a positive signal carried over from DMs helps users recognise people they know and costs nothing when absent.

14. Authentication Service rules for DMs and group DMs

In secure DMs and group DMs every member client is the Authentication Service for the group (D-035, 00 §5.3). The hosting server is only the Delivery Service, plus the identity filter of §14.6.

14.1 Sources of evidence

A client obtains IdentityStates from any of these sources and verifies every one with §7.4. The source doesn't matter, because the home server's signature does:

  1. the IdentityState annotations on mls.handshake events (§13.5);
  2. GET /v1/users/{local}/identity at the subject's home server;
  3. identity.refresh_hint from a DM's hosting server (§12.3);
  4. the IdentityStates returned with KeyPackage claims (13);
  5. the IdentityStates carried in a dm.request (12), with the limits of §14.7;
  6. for its own account, GET /v1/me/identity and the events on me.

When it opens a secure DM or group DM, a client SHOULD refetch, in the background, the IdentityState of each participant whose cached state was validated more than 6 h earlier.

14.2 Admitting a leaf

For each leaf the client must accept (the table in §10.4: Welcome trees, Add proposals, external commits, UpdatePaths, and the KeyPackages it claimed itself), it runs these checks in order:

# Check Failure
D1 ValidateSvDeviceCredential (§10.4). as returned
D2 The group's sv_participants (13) lists sub with an identity-key fingerprint equal to thumb(ik). A client building a group or a commit that changes sv_participants writes these entries itself from its pins. not_participant
D3 Pin check. If sub is the client's own address, ik MUST equal the client's own current identity key. The only exception is one of the user's own stale leaves from a lower igen that is the target of a pending Remove proposal, which is tolerated. Any other own-address leaf is rejected (pin_mismatch) and §18.2 applies. If the client has no pin record for sub, this is first contact: it pins silently (§16.2, subject to §14.7) and continues. Otherwise the client first runs §16.4 on every verified IdentityState for sub it holds that is newer than the pin (including one annotated on this commit), and then compares ik with the updated pin. If the pin's key (or, in state verified_blocked, the pending key) equals ik, the check passes. Otherwise the leaf is rejected with pin_mismatch, without any warning, and a diagnostic is recorded. (After §16.4, a key that a verified, newer IdentityState carries is always the pin's key or its pending key, so only a key without home-signed backing is rejected; for verified_blocked, see the note below.) pin_mismatch
D4 New device. If the client hasn't accepted this (sub, did) in this group before (every leaf counts as new when the client joins), it requires IsDeviceValid (§9) with an IdentityState fresh for admission (§7.6) that lists the device. For a commit processed from the log, the client MAY use the IdentityState annotated on that commit (§13.5) if it verifies and was fresh for admission at the commit's server timestamp (ts). If the current state shows that device later delisted or revoked, the client still accepts the commit and then treats the leaf as stale under §14.4, because it has positive evidence; it doesn't reject the commit. If no suitable state is available, §14.5 applies. as returned
D5 Known device. If the leaf updates a (sub, did) already accepted, the credential MUST be byte-identical (L7). No fresh IdentityState is needed. credential_changed
D6 Group invariants L4, L5, L6 and L8 hold after the change (§10.5). duplicate_device_leaf, mixed_identity, identity_key_as_leaf

A failure makes the Welcome, proposal or commit invalid (RFC 9420): the client doesn't process it and handles it as a positive rejection under 13 §15.4 (MlsReport verification_failed with the identity check result in reason). A KeyPackage the client claimed itself that fails is skipped silently instead (13).

Note on verified_blocked: a client whose pin for sub is in state verified_blocked MUST NOT itself create a commit, Welcome or sv_participants change that admits the new key (§16.5). When another participant's commit in a group DM admits it, the client processes that commit anyway if D1, D2, D4 and D6 pass, because refusing would only split the group, and keeps sending blocked until the user decides. In a 1:1 DM no one else can admit the new key, so it stays out until the user taps "Accept new key" or verifies it.

14.3 What "new device" means

A device is new to a group, for a given client, when the client has never accepted a leaf with that (sub, did) in that group. Joining by Welcome or external commit makes every leaf of the tree new, including the client's own other devices, which it checks against its own IdentityState. Requiring a fresh IdentityState for every new device is what lets a contact's new phone appear without a warning (it chains to the pinned key and is listed by the home server) while a device the home server never listed can't appear at all.

14.4 Removal only on positive evidence

  1. A client MUST NOT treat a leaf as invalid, propose or commit its removal, or show anything about it because the IdentityState it was admitted under has expired, or because the subject's home server is unreachable.
  2. Positive evidence (§1.4) about a leaf is: a verified IdentityState with a higher ver whose igen differs from the leaf's, whose sec is insecure, or whose devices doesn't list the leaf's did; a verified IdentityState with a higher ver whose inc differs from the one the client admitted the leaf under (a new account at the address, D-086); a verified DeviceRevocation covering the did; or a verified deletion of the account (§11.9).
  3. With positive evidence, the client expects the hosting server's Remove proposal (13) and covers it in its next commit. If no such proposal has arrived 60 s after the client accepted the evidence, a member client MAY propose and commit the removal itself, where 12 and 13 allow members to remove devices.
  4. Identity rules never make a client refuse a valid Remove proposal from the hosting server. A hosting server can always deny service (00 §5.2); 12 and 13 limit what it can do to DM membership.

14.5 Holding a commit while evidence arrives

If D4 can't be decided because no suitable IdentityState can be obtained (the fetch failed and no usable annotation came with the commit), the client MUST NOT reject the commit at once. It holds that commit, and every later handshake and message of that group, unprocessed, and follows 13 §15.4 "Deferred": 13 owns the retry timers and the outcome when 24 h pass without a decision. It processes the commit as soon as a decision is possible.

While a commit is held, the conversation simply shows no new messages, and if the user tries to send, the message waits like any message waiting for its server (12). No warning is shown. Because the hosting server annotates every such commit with the IdentityState it checked (§13.5, §14.6), holding is rare.

14.6 The hosting server's identity filter in DMs

Proposed decision: the hosting server of a secure DM or group DM MUST run checks C1, C2 (for the committer's own leaf), C6 and C8 of §13.3 on every commit. For every leaf whose (sub, did) is new to the group, and for every KeyPackage in an Add proposal, it MUST also run C3, C4 and C5, with "fresh for admission" (§7.6) in place of "fresh for the channel AS". For an update of a known (sub, did) it only checks that the credential is byte-identical (L7), as clients do (§14.2 D5). It MUST annotate handshakes as §13.5 says. It never checks pins or sv_participants content beyond 13's structural rules, and it isn't the Authentication Service: clients still decide. Rationale: an honest server then never sequences a commit that honest clients will reject on identity grounds, which would split the group, and never rejects one they would accept (such as a known device's UpdatePath during a long home-server outage); a malicious server gains nothing, because the client checks of §14.2 are unchanged.

14.7 Before a message request is accepted

Before the user accepts a message request (D-049), the client MUST NOT contact the hosting server or any participant's home server to fetch IdentityStates. It uses the IdentityStates carried in the dm.request (12) and states it already holds. Their canonical-address checks follow 01 §7.5's no-contact rule. Before Accept the client creates no pin record (12 §10.4): it may check the Welcome's leaves against existing pins and against the dm.request states, for display only (verifying those states with the relayed server keys, §7.4 step 6). If a state it needs is missing or not fresh for admission, the client defers processing the Welcome until the user accepts. The Welcome's external sender is checked the same way, against the hosting server's keys that the home server relays (13 §6.2 item 2, 12 §10.1); if they don't confirm it, the Welcome is deferred too. The request is still shown, from the data the recipient's home server holds (12, 20). After Accept the client fetches each participant's IdentityState from that participant's home server itself, pins those not yet pinned from it (§16.2), and runs §14.2 as usual (12 §10.5).

Rationale: fetching from the sender's home server would reveal the recipient's IP address to a server the recipient hasn't agreed to talk to, which D-049 forbids for the hosting server for the same reason.

15. Identity reset and downgrade

15.1 When a reset happens

A reset replaces the account's identity key with a new one, in a new generation. It is the last resort (D-017). It happens when:

  • the user has no enrolled device and no recovery key and chooses "Start fresh" (M10, 08);
  • the user believes the identity key itself was stolen and wants to cut it off (in v1 there is no rollover, D-072);
  • a secure bot lost its keys (§15.6).

A downgrade (turning encryption off) counts as a reset (D-019). Everything below applies to both unless the text says otherwise.

A lost or stolen device is never a reason for a reset: revoking the device (D-017, §11.8) removes it everywhere and keeps the identity.

15.2 Server procedure

The home server applies a reset in one transaction when POST /v1/me/identity/reset passes the checks of §11.6. There is no waiting period, no confirmation from another device and no delay of any kind (D-071).

  1. igen ← igen + 1.
  2. For new_key: sec stays secure; store the new idc and the calling device's DeviceCertificate; devices ← [the calling device, since = now]; add both thumbprints to the key history. For downgrade: sec ← insecure; remove idc; devices ← [].
  3. Every other device of the account becomes unenrolled (05 sets enrolled to false). Their home sessions are not ended, so they can show W4a (§18.1). Their DeviceCertificates of the old generation are discarded.
  4. Entries in revoked from the old generation MAY be dropped.
  5. ver ← ver + 1; sign and serve the new IdentityState.
  6. Delete every KeyPackage of the account from the old generation (13). For new_key, store the KeyPackages carried in the request for the calling device (§11.6, 13 §9.2). A downgrade deletes all of them.
  7. For new_key: activate the staged KeyBackup and delete the old one (08 §5.6.3); the previous generation's AccountVault becomes retired as 08 §8.12 specifies (read-only, kept 30 days, readable only by a device that holds its vault keys, §16.7). For downgrade: delete every KeyBackup and every vault, current and retired (08 §5.6.3, §8.12).
  8. For a downgrade, 05 records the account security state as insecure.
  9. After commit, send identity.changed with change reset or downgraded (§12.1) to the account's own devices (with actor) and to every audience (06, target 10 s).
  10. After commit, create a notification record of kind account_alert with alert.code W4a (19 §5.3), targeted at every device of the account other than the initiating device, so that devices without an open event WebSocket learn of the change at once (D-071). Each device still raises W4a from its own check (§18.1); the notification only brings the app forward.

15.3 What everyone sees

Party Reset (new_key) Downgrade
Hosting servers of channels Remove every old-generation leaf (§13.4). The user's new device rejoins by external commit (13). Nobody is warned (D-035). Remove every leaf; memberships become needs_encryption (09).
Channel members Nothing. The user's channel memberships continue, but nothing hands the new identity a history key (D-007): earlier channel messages stay unreadable on its devices unless an old device of the user's brings its keys back within 30 days (08 §11.4). Nothing apart from what 09 shows for needs_encryption.
DM hosting servers Remove old-generation leaves (13), with a delivery cut bound to the old generation (13 §13.2); send identity.refresh_hint to participants (§12.3); serve the account nothing from before its re-add (12 §11.5 item 4, D-007). Remove leaves; 12 recomputes DM security: 1:1 DMs become insecure (K2), and the user is removed from secure group DMs.
Each DM contact's client W2, variant "key changed" (§16.3, §16.4). Unverified contact: the new key is accepted automatically and the user's new device is admitted as 12 and 13 specify; the re-add starts a new membership, so the new identity is served nothing from before it (12 §11.5, D-007). Verified contact: verified_blocked, sending is blocked until "Accept new key" (§16.5). W2, variant "turned off encryption", then W7 in the 1:1 DM (12, 20). Unverified contact: non-blocking. Verified contact: downgraded_blocked, nothing can be sent in the now-insecure 1:1 DM until the user taps the accept action (§16.5).
The user's other devices W4a (§18.1). They become unenrolled and offer "Set up encryption on this device" (G2). W4a. They become ordinary devices of an insecure account.
The initiating device No W4a. It shows M4 to save the new recovery key (08). No W4a.
The user's own pins Not carried into the new, empty vault; the old vault is retired for 30 days (§16.7). Deleted with every vault (08). Insecure accounts hold no keys.

15.4 Downgrade rules

  • A downgrade is refused on a secure home server (SM-3): 409 identity.downgrade_not_allowed.
  • Contacts see W2 with the downgrade variant. A contact's pin moves to downgraded and keeps the last key (§16.3), so a later re-upgrade is a key replacement and raises W2 again.
  • For a contact who had verified the user (pin verified or verified_blocked), the pin moves to downgraded_blocked instead, and the contact's client sends nothing in the now-insecure 1:1 DM until the contact explicitly accepts that the conversation is no longer encrypted (§16.5). Rationale: 00 §4.12.1 makes W2 blocking for a verified contact for both triggers; otherwise an attacker who controls the user's login could reset (blocking verified contacts) and then downgrade to lift the block and receive plaintext.

15.5 Re-upgrade after a downgrade

An account that downgraded turns encryption on again with PUT /v1/me/identity (§11.4) and a fresh identity key (§3.4). Every contact holding a pin in state downgraded or downgraded_blocked sees W2 (§16.4), because every replacement of a pinned key raises W2, including a re-upgrade after a downgrade. Contacts with no pin (people the user never had a secure DM with) pin silently. The user's own other devices don't see W4a for an upgrade (§18.1); they show "Approve this device" (08).

15.6 Bots

  • A secure bot's IdentityCertificate has kind: "bot", and all its DeviceCertificates have plat: "bot" (§6.1). Each bot process is a device (00 HP-10).
  • A bot resets with its bot token. No OIDC re-authentication applies (§11.6). Only the bot's own process can reset it, because only that process can create the new identity key; there is no owner-initiated reset (05 §15.5). An owner who suspects compromise revokes the bot's tokens or deletes the bot (05 §15.4, §15.5).
  • A bot reset raises W2 for the bot's DM contacts with the bot wording (20 selects it from the subject's kind). In channels it is silent like any reset, and it doesn't count as adding a bot again, so W6 isn't repeated (09, 20).
  • Key backup is optional for bots (00 HP-10). Without one, a lost bot key means a reset.

15.7 Not in v1

  • No reset hold. A reset takes effect at once, from any device, enrolled or not (D-071). The accepted risk is described in §22.3.
  • No identity rollover. A new identity key signed by the old one and accepted silently by contacts is deferred (D-072). Theft of a device is handled by revocation (D-017); suspected theft of the identity key by revoking unknown devices and, if the user wants, a reset.

16. Pins and verification state

Pins exist only for DM contacts. Channels never create, read or change them (§13.6), apart from the optional known-contact badge (§13.7).

Only enrolled devices of secure accounts keep pin records, run §16.4 and raise W2. Insecure accounts and unenrolled devices never do: they hold no vault keys (D-021, D-058) and take part in no secure DM. The one exception is W2's new-account wording, which every client raises in a 1:1 DM under §16.8 (D-086).

16.1 Pin record

A client stores one pin record per contact address in the AccountVault (08 owns the record type, its ID and its encryption; this section owns its content and semantics). Because the vault is shared, all the user's enrolled devices see the same pins, and a new device never pins again (D-054).

Member Type Required Meaning
addr string Yes The contact's canonical address.
inc string Yes The contact's account incarnation (05 §11.1, D-086) that ik, igen and the verification state belong to. A record never applies to another incarnation (§16.4).
state string Yes pinned, verified, changed, verified_blocked, accepted, downgraded, downgraded_blocked or new_account (§16.3). A client MUST treat an unknown value as verified_blocked (fail safe), with pendingIk set to the key in the newest verified IdentityState it holds for the address; if it holds none, it fetches one, and until one arrives sending is blocked and "Accept new key" is disabled.
ik string Yes, except in state new_account The pinned identity key, 32 bytes base64url. In states downgraded and downgraded_blocked, the last key the contact had. Absent in state new_account: the new account has no key yet.
igen integer Yes The generation of ik.
ver integer Yes The highest IdentityState ver this record reflects.
kind string Yes user or bot, from the IdentityCertificate; in state new_account, from the public profile (05 §17.1), user if unknown.
pendingIk string In verified_blocked The new key waiting for the user's decision.
pendingIgen integer In verified_blocked Its generation.
prevIk string In changed and accepted The key that the most recent key change replaced. Set by every transition that replaces ik; used by the merge rule (§16.6).
prevIgen integer With prevIk The generation of prevIk.
wasVerified boolean Yes True when the key most recently replaced, or the key held when the contact downgraded, was verified.
verifiedAt string In verified RFC 3339 time of verification.
verifyMethod string In verified safety_number or qr.
changeId string When a W2 is outstanding Identifies the change: thumb(new key) + ":" + igen, "insecure:" + igen for a downgrade, or "account:" + inc for a new account (§16.8).
w2Dismissed boolean Yes Whether the user dismissed the W2 for changeId.
firstSeenAt string Yes RFC 3339 time of first contact.
updatedAt string Yes RFC 3339 time of the last change to the record.

16.2 First contact

A client creates a pin record silently, in state pinned, with no message to the user, the first time it accepts a verified identity for an address it has no record for, in one of these situations:

  • the user starts a DM or a group DM that includes the address (00 F7 step 3);
  • after the user accepts a message request (12 §10.5), from an IdentityState the client fetched from the participant's home server itself (never before Accept, §14.7);
  • the client processes a Welcome or a group DM commit, in a DM the user has accepted, that includes the address;
  • the client claims the address's KeyPackages to add them to a DM.

The key comes from the idc of a verified IdentityState (§7.4), never from a credential alone. The record takes that state's inc, ver and igen. Clients never pin from channels or profile lookups, and never pin their own address (§18 covers the own identity).

16.3 State machine

State Event Action Next state
(none) First contact (§16.2) Store the record silently pinned
pinned The user verifies the current key (§17) Set verifiedAt, verifyMethod verified
pinned Key-change evidence (§16.4) prevIk ← ik; ik ← new key; wasVerified ← false; raise W2 "key changed" changed
pinned Downgrade evidence Keep ik; wasVerified ← false; raise W2 "turned off encryption" downgraded
verified Key-change evidence Keep ik; pendingIk ← new key; wasVerified ← true; raise W2 (blocking); block sending (§16.5) verified_blocked
verified Downgrade evidence Keep ik; wasVerified ← true; raise W2 "turned off encryption" (blocking); block sending (§16.5) downgraded_blocked
verified The user removes the verification Clear verifiedAt, verifyMethod pinned
changed The user dismisses W2 w2Dismissed ← true pinned
changed The user verifies the new key Set verifiedAt, verifyMethod verified
changed Another key change prevIk ← ik; ik ← newest key; raise W2 again changed
changed Downgrade evidence Raise W2 "turned off encryption" downgraded
verified_blocked The user taps "Accept new key" prevIk ← ik; ik ← pendingIk; clear pending; unblock; W2 stays as a non-blocking banner accepted
verified_blocked The user verifies the new key (§17) ik ← pendingIk; clear pending; unblock; set verifiedAt verified
verified_blocked The user dismisses W2 Not possible: the blocking W2 has no dismiss action (20) verified_blocked
verified_blocked Another key change pendingIk ← newest key; W2 updated (still blocking) verified_blocked
verified_blocked Downgrade evidence Clear pending; keep ik (the last verified key) and the block; raise W2 "turned off encryption" (blocking) downgraded_blocked
accepted The user dismisses W2 w2Dismissed ← true pinned
accepted The user verifies Set verifiedAt, verifyMethod verified
accepted Key-change evidence prevIk ← ik; ik ← new key; wasVerified ← false; raise W2 changed
accepted Downgrade evidence wasVerified ← false; raise W2 "turned off encryption" downgraded
downgraded Re-upgrade evidence, wasVerified false prevIk ← ik; ik ← new key; raise W2 "key changed" changed
downgraded Re-upgrade evidence, wasVerified true pendingIk ← new key; raise W2 (blocking); block sending verified_blocked
downgraded The user dismisses W2 w2Dismissed ← true downgraded
downgraded_blocked The user taps the accept action of the blocking W2 (20, for example "Continue without encryption") Unblock; W2 stays as a non-blocking banner; wasVerified stays true downgraded
downgraded_blocked The user dismisses W2 Not possible: the blocking W2 has no dismiss action (20) downgraded_blocked
downgraded_blocked Re-upgrade evidence pendingIk ← new key; W2 updated to "key changed" (still blocking) verified_blocked
any New-account evidence (§16.4): a verified IdentityState whose inc differs from the record's inc Rewrite the record for the new account: inc, ver, igen ← those of the state; clear pendingIk, pendingIgen, prevIk, prevIgen, verifiedAt and verifyMethod; wasVerified ← false; firstSeenAt ← now; raise W2 "new account" (§16.8). If the state's sec is secure: ik ← its key and kind from its idc. Otherwise remove ik. pinned if sec is secure, else new_account
new_account Evidence with sec secure and the same inc (the new account turned on encryption) ik ← the new key; update igen, ver and kind. No W2: it is the account's first key, pinned as at first contact (§16.2) pinned
new_account The user dismisses W2 w2Dismissed ← true new_account
pinned The user dismisses the new-account W2 w2Dismissed ← true pinned
any Evidence with the same key and a higher ver (devices added or removed) Update ver only. No UI. unchanged

Any (state, event) pair that the table doesn't list leaves the record unchanged.

"Raise W2" means: set changeId for the change, set w2Dismissed to false, and show W2, in the variant given, in the 1:1 DM with the contact (whatever its mode after the change) and in every secure group DM that includes the contact. The new-account wording is shown in the 1:1 DM only (§16.8). 20 owns the copy, including the bot wording when kind is bot, and MAY also add its downgrade system line to insecure group DMs. W2 is shown once per change: the same changeId never raises it twice, on any of the user's devices.

16.4 Change detection

OnIdentityEvidence(S) runs whenever a client accepts a verified IdentityState S (§7.4) for an address that has a pin record P, from any source of §14.1:

  1. If S.ver ≤ P.ver, do nothing. If S.inc differs from P.inc (a new account at the address, D-086), apply new-account evidence (§16.3) and go to step 4.
  2. If S.sec is insecure: if P.state is neither downgraded nor downgraded_blocked, apply downgrade evidence. Otherwise only update P.ver.
  3. If S.sec is secure, let k be the identity key in S.idc:
    1. If P.state is downgraded or downgraded_blocked, apply re-upgrade evidence, whatever k is.
    2. Else if k equals P.ik, or P.state is verified_blocked and k equals P.pendingIk, update P.ver and P.igen only.
    3. Else apply key-change evidence with k.
  4. Set P.ver ← S.ver, P.updatedAt ← now, and write P to the vault.

Only a verified IdentityState is evidence. A leaf credential, KeyPackage or Welcome that shows a different identity key without an IdentityState backing it never raises W2: the client rejects that leaf with pin_mismatch (§14.2 D3) and records a diagnostic.

Proposed decision: W2 is raised only on evidence signed by the contact's home server (a verified IdentityState with a higher ver). Rationale: a hosting server or a member could otherwise cause W2 at will with a fabricated credential; requiring the home server's signature means every W2 corresponds to a change the home server published and will show to everyone consistently.

16.5 Sending blocked for a verified contact

While a pin is in state verified_blocked, the client MUST NOT, in any secure DM or group DM that includes the contact:

  • send any SealedMessage (message, edit, reaction, delete, attachment key or anything else 14 carries);
  • start or join a call;
  • create a commit or Welcome that admits the pending key, or change the contact's sv_participants entry.

It MAY still receive and show messages, process other members' commits (§14.2), leave the conversation, and send queued messages after the block ends. The composer shows the blocking W2 with "Accept new key" and "Verify" (20). Messages the user wrote before or during the block stay queued and are sent only after the user accepts or verifies.

A call already running. If the user is in a call of an affected group DM when another participant's commit admits the pending key, the client MUST stop transmitting every media source from the first epoch whose group contains a leaf with the pending key, because that leaf can derive the epoch's SFrame keys (18). It keeps receiving and playing the other participants' media, but doesn't play the streams of a leaf with the pending key until the block ends (18 §9.8 item 5). It leaves the push-to-talk and mute state as they are, and the talk and mute indicators show plainly that the user isn't being heard (00 HP-13 item 5, 16, 20); they never look as if the user is transmitting. When the block ends (the user accepts or verifies), transmission resumes at once if push-to-talk is held or the microphone is open, with live audio only (D-012).

While a pin is in state downgraded_blocked, the client MUST NOT, in the 1:1 DM with the contact, send anything (plaintext or sealed), or start or join a call, until the user taps the accept action of the blocking W2 (20). It still receives and shows messages, and the user can leave the conversation. A call that was running in that DM ends when the DM becomes insecure (12). Messages the user wrote while the DM was secure are never sent automatically as plaintext: the client shows them as not sent, and the user can send each one again (now unencrypted, with W7 showing) or delete it. Secure group DMs aren't affected, because the contact has already been removed from them (SM-9).

For bot clients this blocking is OPTIONAL (§1.3).

16.6 Merging records from several devices

Two of the user's devices can change the same pin record concurrently. When 08's vault sync finds two versions A and B of a record, the merged record is:

If the two versions have different inc, the merged record is the version with the higher ver, unchanged (a later account at the address always has a higher ver, §7.3), and the rules below don't apply.

  1. Base: the version with the higher (igen, ver) pair, compared as a tuple. If equal, the one with the later updatedAt.
  2. Downgrades stay. If the base is downgraded or downgraded_blocked, the merged state is the base's, except that it becomes downgraded_blocked with wasVerified = true when the base is downgraded, its wasVerified is false, and the other version is verified or verified_blocked with ik equal to the base's ik (a device that verified the contact hadn't yet seen the downgrade). Rules 3 to 5 don't apply.
  3. Verified wins. If either version is verified for the newest key among the two (the newest key of a verified_blocked version is its pendingIk), the merged state is verified with that version's verifiedAt and verifyMethod.
  4. Blocking spreads. Otherwise, if the base is changed and the other version is verified with other.ik equal to base.prevIk, the merged state is verified_blocked, with ik = other.ik, igen = other.igen, pendingIk = base.ik, pendingIgen = base.igen and wasVerified = true. A contact the user verified on any device stays blocking on every device.
  5. Otherwise the merged state is the base's, except that with equal (igen, ver) it is chosen by precedence verified_blocked > accepted > changed > pinned.
  6. w2Dismissed is true if either version has w2Dismissed true for the merged record's changeId.
  7. firstSeenAt is the earlier of the two.

16.7 Pins after the user's own reset

Pins live in the AccountVault, which belongs to one identity generation. After the user's own reset, the new vault starts empty (08), so the user's client has no pins: contacts are pinned again silently on first contact, and earlier verifications are lost (the user can verify again). The previous vault is retired for 30 days (§15.2 step 7, 08 §8.12). Only a device that still holds its vault keys can read it: in practice, one of the user's old devices that is enrolled again in the new identity within those 30 days (08 §11.4). That device imports every old pin record for a contact that has no pin record in the new vault. The imported records describe the contacts' keys, which the user's reset didn't change, so they stay valid and go through §16.4 as usual. The old recovery key alone opens nothing, because the old KeyBackup is deleted at the reset (08 §5.6.3). After a downgrade every vault is deleted at once (08).

16.8 A new account at a known address (D-086)

When a deleted address is registered again (01 §5.7), the new account has a new incarnation (inc, §7.1) and is a different person. Clients tell their user once, with W2's new-account wording ("This is a new account using {address}", 20 §3.2), and never as a key change or a downgrade.

A client raises the new-account W2 for address A, in its 1:1 DM with A only, when it first learns that A belongs to an account other than the one it knew, by any of:

  1. new-account evidence for its pin of A (§16.3, §16.4);
  2. the DmParticipant of A in that DM (12 §6.3) showing an inc other than the one the client recorded for A in that DM;
  3. that DM reopening after it was closed with reason peer_deleted (12 §6.4, §13.4). Deletion is final (D-091), so a reopening after peer_deleted always means a new account.

Every client does this, whether its account is secure or insecure and whether the device is enrolled; it is the one W2 that devices without pins raise (§16). A client that keeps a pin for A records the change in the pin (changeId "account:" + inc, w2Dismissed), so the user's other enrolled devices show it once and its dismissal syncs; any other client records (A, inc) in device-local storage and shows it once per device. The client shows it in no other conversation: the earlier account was removed from every group DM (12 §6.4), and the new account shares none with the user yet. No earlier verification, pin state or sv_participants entry applies to the new account (§16.3, 12 §6.4).

17. Verification

Verification is optional. Clients MUST NOT prompt anyone to verify, apart from the "Verify" action on W2. It is offered from the contact's profile inside a DM and from the W2 banner (20).

17.1 Safety number

The safety number for two people A and B is 60 decimal digits: two 30-digit halves, one computed from each person's identity key and canonical address.

Fingerprint(ik, addr):
    h ← "sv1 safety" || 0x00 || 0x00 0x01 || ik || addr
                                          # label (10 ASCII bytes) and a zero byte,
                                          # version (uint16, big-endian) = 1,
                                          # ik = 32 raw bytes, addr = UTF-8 canonical address
    repeat 5200 times:
        h ← SHA-512(h || ik)
    digits ← ""
    for j in 0 .. 5:
        v ← uint40_be(h[5j .. 5j+4]) mod 100000
        digits ← digits || five decimal digits of v, zero-padded
    return digits                          # 30 digits

SafetyNumber(A, B):
    fa ← Fingerprint(ik_A, addr_A)
    fb ← Fingerprint(ik_B, addr_B)
    return min(fa, fb) || max(fa, fb)      # compared as 30-character strings

Rules:

  • The label sv1 safety (registered in 04 §8.5) separates this hash chain from every other use of SHA-512 in the protocol and from other numeric-fingerprint schemes with the same structure. The version is 1 for protocol version sv1. A future change to the construction uses a new version value.
  • ik is the key the client trusts for that person: for the contact, P.pendingIk when the pin is verified_blocked, otherwise P.ik; for the user, the own current identity key. So verifying from a blocking W2 verifies the new key and ends the block.
  • Both people see the same number, because the halves are sorted.
  • Clients MUST display all 60 digits, as 12 groups of 5 digits (for example in 3 rows of 4 groups), and MUST NOT shorten them.
  • The user compares the number with the contact in person or over a channel they trust, such as a call where they recognise the voice, and then taps "Mark as verified". The client records verifyMethod: "safety_number".
  • The safety number changes when either person's identity key changes. It doesn't change when either adds or removes a device.

17.2 QR verification

Each device on the verification screen shows a QR code and offers a scanner. Each person scans the other's code (00 HP-2, mutual QR scan); a successful scan marks the scanned person as verified on the scanner's side.

Payload.

struct {
    uint8  version;                 /* 1 */
    opaque nonce[16];               /* fresh random value for each display */
    opaque own_address<1..2^16-1>;  /* displayer's canonical address, UTF-8 */
    opaque own_ik[32];              /* displayer's own identity key */
    opaque peer_address<1..2^16-1>; /* the contact's canonical address, UTF-8 */
    opaque peer_ik[32];             /* the key the displayer trusts for the contact */
} VerifyQR;

The vectors <1..2^16-1> have a 2-byte big-endian length prefix (the fixed-length-prefix vector notation of RFC 8446 §3.4, not RFC 9420's variable-length integers). The QR code contains the ASCII text SVV1: followed by base64url(VerifyQR) without padding, in byte mode with error correction level M. peer_ik follows the same rule as ik in §17.1. The nonce is regenerated every time the screen opens and the code is valid for 10 minutes.

Scanning. When B's device scans A's code, it checks:

  1. the text starts with SVV1:, decodes, and version is 1;
  2. own_address is an address for which B has a pin record (if B opened the screen for a different contact, the client says the code belongs to someone else and changes nothing);
  3. own_ik equals the key B trusts for A (§17.1 rule for ik);
  4. peer_address equals B's own canonical address;
  5. peer_ik equals B's own current identity key.

If all hold, B's client marks A as verified (verifyMethod: "qr"). If any fails, it says the codes don't match and changes nothing.

Rationale: B's checks prove that A's device shows A's real key and holds B's real key; A's scan of B's code proves the reverse.

17.3 Removing verification

The contact's profile offers "Remove verification", which moves the pin from verified to pinned. It never raises W2.

18. Self-alerts (W4)

W4 alerts appear only on the user's own devices. W4a to W4c concern the user's own identity (D-035); W4d, the new-sign-in notice (D-084), concerns a sign-in to the account, applies to insecure accounts too, and is triggered by 05 (05 §12.12). They are the only identity alerts in channels. 20 owns their copy and presentation.

18.1 W4a: your identity was reset from elsewhere

A device D of account U raises W4a when it accepts a verified IdentityState S for U's own address such that:

  • the last own IdentityState D had accepted had sec secure, and
  • S.igen is greater than that state's igen (a reset or a downgrade), and
  • D isn't the initiating device of that change: D didn't receive the successful response that created S.igen, and the actor.did of the matching identity.changed isn't D's.

An upgrade from insecure never raises W4a. The other devices show "Approve this device" instead (08, §22.4).

D MUST check its own IdentityState at every start, at every reconnect of the home event WebSocket, and on every identity.changed on me (which is durable, so a device that was offline still receives it). A device that missed several resets raises W4a once.

On W4a, an enrolled device MUST at once stop using its old identity key and DSK: it signs nothing more, makes no MLS commits, and sends no SealedMessages. It discards its MLS group state for secure contexts, keeps already-decrypted history and history keys for reading, and becomes unenrolled. The alert needs a tap (00 §4.12.1). Its actions are "Set up encryption on this device" (pairing or recovery against the new identity, G2) and "This wasn't me", which opens the account's security settings: linked sign-in providers and signed-in devices (05). From there the user can reset again to take the account back, after an honest explanation that contacts will see another notice. The device SHOULD delete the old identity key once the user has acknowledged W4a.

An unenrolled device of U shows W4a in the same way, without the key handling.

After a rejected home-server change (02 §10.6). If the device's pin for its home server was re-created as a first contact after a rejected change, and the account's IdentityState doesn't name the identity key the device holds (igen and ikf), the device still raises W4a. But it starts no upgrade (§11.4), reset (§11.6), pairing or KeyBackup upload (08), and keeps its old keys, until an IdentityState that it can verify under a pin accepted by 02 §10.2 names its key, or the person chooses to reset.

18.2 W4b: someone appears under your address

An enrolled device D, whose own current identity key is K in generation g, raises W4b when a context roster it holds (the leaves of an MLS tree for a channel, DM or group DM) contains a leaf whose credential names D's own address and:

  1. whose identity key isn't K and whose igen is g or higher; or
  2. whose identity key is K but whose did isn't listed in D's latest own IdentityState and isn't covered by a revocation D knows about.

Leaves with an igen lower than g are the user's own stale leaves awaiting removal after a reset, and never raise W4b.

Before raising W4b, D MUST fetch its own IdentityState from its home server. If that shows a higher igen than g, D raises W4a instead (§18.1). If case 2 now finds the device listed, there is no alert (W4c covers it).

W4b needs a tap. It is raised once per (context, identity key, did) per device. D also reports it as §13.6 S4 does, with reason key_mismatch (case 1) or device_not_listed (case 2), to the hosting server and to its own home server. In a DM or group DM the commit that added such a leaf is also rejected (§14.2 D3). The alert's actions are "Secure my account" (as for W4a) and, in a channel, reporting the situation to the community's moderators (10).

W4b covers case 2 (a leaf under the user's own address and own identity key whose device the user's home server doesn't list) and DM and group DM rosters as well as channel rosters (00 §4.12.1). Rationale: case 2 means someone holding a copy of the user's identity key got a hosting server to admit a device the user's home server never listed, and an own-address leaf in a DM tree means someone tried to appear as the user to a contact; both are the same situation for the user ("someone appears as you") and need the same response.

18.3 W4c: a new device was added

A device D raises W4c when it accepts its own IdentityState S with the same igen as the last own state it accepted, and S.devices contains a did that wasn't in that last state and isn't D's own. W4c shows the new device's plat and since. It needs no tap.

Every signed-in device of the account raises it, enrolled or not, except the new device itself and the device that approved the pairing of that did, in either direction (08 §6.9.2, §6.9.3), which shows 08's "Your new device is ready" instead. The approving device recognises the did from the pairing session and records it in its local own-identity state (§18.4). D sets its baseline when it signs in or enrols: devices already listed at that point never raise W4c on D.

18.4 Local own-identity state

Each device keeps, in local storage (not in the vault): the ver, igen, sec and device set of the last own IdentityState it accepted, its own enrolment generation, the dids of devices whose pairing it approved in the last 24 h (§18.3), and the W4 alerts it has already raised, including the dids it raised W4d for (05 §12.12). It reads its own state from GET /v1/me/identity, from the events on me, from the IdentityState returned with its own HomeAssertions (06), and from IdentityStates for its own address that hosting servers attach to mls.handshake events (§13.5). It verifies each with §7.4 and processes every one that passes, whatever its source, under §18.1 to §18.3. Rationale: a home server that shows the user's own devices an old IdentityState while publishing a new one to others is caught as soon as any hosting server relays the newer, home-signed state back to one of the user's devices.

19. Error codes

This document owns the identity area (00 §7.5). Every code uses the error object of 00 §7.9.

Code HTTP userAction retryable Meaning data
identity.not_found 404 none false No account has this local part on this server (a channel's local part included). —
identity.account_deleted 410 none false The account was deleted; the local part is in quarantine. —
identity.invalid_certificate 400 none false A submitted IdentityCertificate, DeviceCertificate or DeviceRevocation failed verification. object: identityCertificate, deviceCertificate or revocation; reason: identity check result (§10.6)
identity.subject_mismatch 403 none false The object's sub isn't the caller's account (and isn't merely an alias of it). expected: canonical address
identity.generation_mismatch 409 none false expectedIgen or the object's igen isn't the current or next generation. The client refetches its own identity and re-evaluates; this may reveal a reset (W4a). currentIgen, ver
identity.already_secure 409 set_up_device false Encryption is already on for this account; this device should be paired or restored instead. igen
identity.not_secure 409 enable_encryption false The operation needs a secure account. —
identity.key_reused 409 none false The identity key or DSK was used before by this account, or a DSK equals the identity key. The client generates a new key and retries. which: ik or dsk
identity.device_mismatch 403 none false The DeviceCertificate's did isn't the calling device. —
identity.device_revoked 403 sign_in false This device was revoked and can't be enrolled. The user signs in again as a new device. —
identity.device_conflict 409 none false A different DeviceCertificate is already registered for this device in this generation. —
identity.unknown_device 404 none false The did isn't a device of this account. —
identity.too_many_devices 409 none false The account already has maxEnrolledDevices enrolled devices. The user removes one they no longer use. max
identity.downgrade_not_allowed 409 none false Accounts on a secure server can't turn encryption off. —

Other codes these endpoints return: core.invalid_request, core.unauthenticated, core.forbidden (remote session), core.rate_limited, core.unavailable (03); address.non_canonical and other address.* codes (01); auth.reauth_required and bot.not_allowed (05, for §11.6 and §11.7); 05's endpoints answer device.revocation_invalid for a DeviceRevocation supplied to them that fails §11.8's checks; backup.required (08, for §11.4 and §11.6). Fresh authentication uses 05's code; this document defines no re-authentication code of its own. The identity check results of §10.6 travel in data.reason of mls.credential_rejected and in MlsReports (13), which this document doesn't own.

20. Limits and timers

Item Value Normative level
Clock skew allowance 60 s MUST (00 §7.7)
IdentityState lifetime (exp − iat) at most 86,400 s MUST
Remaining validity of the served IdentityState at least 3,600 s MUST
IdentityState re-signing interval 12 h SHOULD
Channel AS freshness validated at most 300 s ago (an existing leaf's UpdatePath during a home outage: unexpired, 13 §6.1.1, D-083) MUST
DM admission freshness iat at most 86,400 s old MUST
Hosting server fetch timeout 5 s SHOULD
retryAfterMs of mls.credential_rejected with reason state_unavailable when C3 can't obtain a state (13 §6.1.1 A3) 30,000 ms SHOULD
Hosting server background revalidation every 24 h for every subject with leaves in a secure group, spread out and limited per home server SHOULD
Client refetch on opening a DM when the cached state is older than 6 h SHOULD
GET …/identity cache lifetime max-age at most 60 s MUST
GET …/identity rate limit floor 120 per minute per IP; 1,200 per minute per federation peer MUST accept at least
Background IdentityState checks in channels at most 20 new home-server lookups per minute SHOULD
revoked retention at least 90 days, unless the limits force an entry out; at most 50 entries, at most 8 with rev MUST
Compact IdentityState size (home server output and verifier limit) at most 32,768 bytes MUST
maxEnrolledDevices (ServerMetadata limits) default 50, floor 10, at most 64 MUST accept the floor; MUST NOT advertise more than 64
Device registrations at most 10 per account per hour MAY be lower, never below 3
Generation changes (upgrade, re-upgrade, reset, downgrade) 5 per account per 24 h MUST allow at least 5; SHOULD refuse more
Re-authentication window for reset and downgrade, and for revoking another active device through §11.7 600 s (05 §9, P-05-8) as 05
Retired AccountVault after a reset (new_key) 30 days, then deleted (08 §8.12) as 08
DM hold-and-retry schedule 13 §15.4 "Deferred" (owned by 13) as 13
Member removal fallback 60 s MAY
QR code validity 600 s MUST
Safety number iterations 5,200 MUST
Identity object size limits IdentityCertificate and DeviceCertificate 2,048 bytes; DeviceRevocation 1,024 bytes; IdentityState 32,768 bytes; each sv_device vector 2,048 bytes MUST
Verifier store retention at least 30 days after the subject stops being relevant SHOULD
ver jump after a home-server restore at least 2^32 MUST
S2S fan-out target; session end at audiences 10 s; 60 s (06) as 06

Registry additions. ServerMetadata limits gains maxEnrolledDevices (02 carries the container). Crypto label sv1 safety, the hash-chain prefix of the safety number (§17.1, owner 07), registered in 04 §8.5. Event types of this document for 03's index: identity.changed, identity.refresh_hint and the payload of device.revoked (§12). Diagnostic report kind identity_check (reserved for 07 by 15). Uses 19's notification kind account_alert with code W4a (§15.2 step 10).

21. Test vectors

These vectors use the Ed25519 test keys of RFC 8032 §7.1 and, for the box key, the X25519 recipient key skR of 04 §16 V-12 (deliberately not the RFC 7748 §6.1 key, which 13 §20.8 uses as a KeyPackage init_key; 13 §3.3 item 5 forbids reusing a box key there), so anyone can reproduce them. Every signature below was computed with those keys (Ed25519 is deterministic). JWS payloads are serialized without white space, in the member order shown. The normative machine-readable copies follow 04's test-vector file format.

21.1 Keys

Name Private key (hex, RFC 8032 secret) Public key (hex) Public key (base64url) Thumbprint
Alice's identity key 9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60 (TEST 1) d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a 11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo ikf = kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k
Alice's desktop DSK 4ccd089b28ff96da9db6c346ec114e0f5b8a319f35aba624da8cf6ed4fb8a6fb (TEST 2) 3d4017c3e843895a92b70aa74d1b7ebc9c982ccf2ec4968cc0cd55f12af4660c PUAXw-hDiVqStwqnTRt-vJyYLM8uxJaMwM1V8Sr0Zgw dkf = FtIu-VbGrfe_KB6CH7GNwODB72MNxj_ml11dEvO-7kk
Alice's desktop box key (dbk, X25519) 808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f (04 §16 V-12 skR) 493e82fc74464a59268817623d2053c5eb8e2cc4a988b4fee179ec6b010d531d ST6C_HRGSlkmiBdiPSBTxeuOLMSpiLT-4XnsawENUx0 —
a.com server key a.com#2026-12a c5aa8df43f9f837bedb7442f31dcb7b166d38535076f094b85ce3a2e0b4458f7 (TEST 3) fc51cd8e6218a1a38da47ed00230f0580816ed13ba3303ac5deb911548908025 _FHNjmIYoaONpH7QAjDwWAgW7RO6MwOsXeuRFUiQgCU —
Bob's identity key f5e5767cf153319517630f226876b86c8160cc583bc013744c6bf255f5cc0ee5 (TEST 1024) 278117fc144c72340f67d0f2316e8386ceffbf2b2428c9c51fef7c597f1d426e — ikf = lZI1vM7tnlYapaF5-cy86ptx0tT_8Av721hhiNB5ti4

The thumbprint of Alice's identity key matches RFC 8037 Appendix A.3, which uses the same key.

Device IDs: Alice's desktop q2bS9xVg3m0yJpQe1vT0Aw; a revoked device Yx3kP0aL9qR2sT5uV8wZ1A.

Incarnations (05 §11.1): Alice sLGys7S1tre4ubq7vL2-vw (bytes b0b1…bf); Carol 0NHS09TV1tfY2drb3N3e3w (bytes d0d1…df).

21.2 IdentityCertificate

Header: {"alg":"EdDSA","typ":"sv-idcert+jwt","kid":"kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k"}

Payload: {"sub":"alice@a.com","ik":{"kty":"OKP","crv":"Ed25519","x":"11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo"},"igen":1,"kind":"user","iat":1764800000}

Compact JWS (402 bytes):

eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkY2VydCtqd3QiLCJraWQiOiJrUHJLX3FteFZXYVlWQTl3d0JGNkl1bzN2Vnp6N1R4SENUd1hCeWdyUzRrIn0.eyJzdWIiOiJhbGljZUBhLmNvbSIsImlrIjp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4IjoiMTFxWUFZS3hDcmZWU183VHlXUUhPZzdoY3ZQYXBpTWxyd0lhYVBjSFVSbyJ9LCJpZ2VuIjoxLCJraW5kIjoidXNlciIsImlhdCI6MTc2NDgwMDAwMH0.PeIs1LFNL6Cj9noQPSNwkSh3SeuU6R51B8LSyCmK-c1yG0LhKiENrwy3v5I4Ov67PifviunZbhFv4Tzs4PUxBg

21.3 DeviceCertificate

Header: {"alg":"EdDSA","typ":"sv-devcert+jwt","kid":"kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k"}

Payload: {"sub":"alice@a.com","igen":1,"did":"q2bS9xVg3m0yJpQe1vT0Aw","dsk":{"kty":"OKP","crv":"Ed25519","x":"PUAXw-hDiVqStwqnTRt-vJyYLM8uxJaMwM1V8Sr0Zgw"},"dbk":{"kty":"OKP","crv":"X25519","x":"ST6C_HRGSlkmiBdiPSBTxeuOLMSpiLT-4XnsawENUx0"},"plat":"desktop","iat":1764800000}

Compact JWS (563 bytes):

eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldmNlcnQrand0Iiwia2lkIjoia1ByS19xbXhWV2FZVkE5d3dCRjZJdW8zdlZ6ejdUeEhDVHdYQnlnclM0ayJ9.eyJzdWIiOiJhbGljZUBhLmNvbSIsImlnZW4iOjEsImRpZCI6InEyYlM5eFZnM20weUpwUWUxdlQwQXciLCJkc2siOnsia3R5IjoiT0tQIiwiY3J2IjoiRWQyNTUxOSIsIngiOiJQVUFYdy1oRGlWcVN0d3FuVFJ0LXZKeVlMTTh1eEphTXdNMVY4U3IwWmd3In0sImRiayI6eyJrdHkiOiJPS1AiLCJjcnYiOiJYMjU1MTkiLCJ4IjoiU1Q2Q19IUkdTbGttaUJkaVBTQlR4ZXVPTE1TcGlMVC00WG5zYXdFTlV4MCJ9LCJwbGF0IjoiZGVza3RvcCIsImlhdCI6MTc2NDgwMDAwMH0.ApQdMjJnPiI-QzzzBAzUbh9JB3A0j6i7WV9GSZ8Huk_ixdYgF0Xq5LrNZYrSN_X7rMemvO5eEvuwir55L03ICg

21.4 IdentityState (secure)

Header: {"alg":"EdDSA","typ":"sv-idstate+jwt","kid":"a.com#2026-12a"}

Payload: as in §7.7, with idc set to the compact JWS of §21.2 and revoked[0].rev set to the compact JWS of §21.6; serialized in the order iss, sub, inc, ver, sec, igen, idc, devices, revoked, iat, exp, with device members did, dkf, plat, since and revoked members did, at, rev.

Compact JWS (1586 bytes), signed with the a.com server key:

eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkc3RhdGUrand0Iiwia2lkIjoiYS5jb20jMjAyNi0xMmEifQ.eyJpc3MiOiJhLmNvbSIsInN1YiI6ImFsaWNlQGEuY29tIiwiaW5jIjoic0xHeXM3UzF0cmU0dWJxN3ZMMi12dyIsInZlciI6MTcsInNlYyI6InNlY3VyZSIsImlnZW4iOjEsImlkYyI6ImV5SmhiR2NpT2lKRlpFUlRRU0lzSW5SNWNDSTZJbk4yTFdsa1kyVnlkQ3RxZDNRaUxDSnJhV1FpT2lKclVISkxYM0Z0ZUZaWFlWbFdRVGwzZDBKR05rbDFiek4yVm5wNk4xUjRTRU5VZDFoQ2VXZHlVelJySW4wLmV5SnpkV0lpT2lKaGJHbGpaVUJoTG1OdmJTSXNJbWxySWpwN0ltdDBlU0k2SWs5TFVDSXNJbU55ZGlJNklrVmtNalUxTVRraUxDSjRJam9pTVRGeFdVRlpTM2hEY21aV1UxODNWSGxYVVVoUFp6ZG9ZM1pRWVhCcFRXeHlkMGxoWVZCalNGVlNieUo5TENKcFoyVnVJam94TENKcmFXNWtJam9pZFhObGNpSXNJbWxoZENJNk1UYzJORGd3TURBd01IMC5QZUlzMUxGTkw2Q2o5bm9RUFNOd2tTaDNTZXVVNlI1MUI4TFN5Q21LLWMxeUcwTGhLaUVOcnd5M3Y1STRPdjY3UGlmdml1blpiaEZ2NFR6czRQVXhCZyIsImRldmljZXMiOlt7ImRpZCI6InEyYlM5eFZnM20weUpwUWUxdlQwQXciLCJka2YiOiJGdEl1LVZiR3JmZV9LQjZDSDdHTndPREI3Mk1OeGpfbWwxMWRFdk8tN2trIiwicGxhdCI6ImRlc2t0b3AiLCJzaW5jZSI6MTc2NDgwMDAwMH1dLCJyZXZva2VkIjpbeyJkaWQiOiJZeDNrUDBhTDlxUjJzVDV1Vjh3WjFBIiwiYXQiOjE3NjQ4NTAwMDAsInJldiI6ImV5SmhiR2NpT2lKRlpFUlRRU0lzSW5SNWNDSTZJbk4yTFdSbGRuSmxkbTlyWlN0cWQzUWlMQ0pyYVdRaU9pSnJVSEpMWDNGdGVGWlhZVmxXUVRsM2QwSkdOa2wxYnpOMlZucDZOMVI0U0VOVWQxaENlV2R5VXpSckluMC5leUp6ZFdJaU9pSmhiR2xqWlVCaExtTnZiU0lzSW1sblpXNGlPakVzSW1ScFpDSTZJbGw0TTJ0UU1HRk1PWEZTTW5OVU5YVldPSGRhTVVFaUxDSnBZWFFpT2pFM05qUTROVEF3TURCOS5rMFBjTW5mMEVWNURUNmlFZlJ6VWJDenlYUzFjcXBxeUhhY0NHM3NtVG1sSTF5VXdtOTlyeTQxUXJyal83RDhCclI4S1ExclowcVhjS21GdUJmaTVDQSJ9XSwiaWF0IjoxNzY0ODcyNDAwLCJleHAiOjE3NjQ5NTg4MDB9.b3k09Umyur4c3Cg0Fr4tFNsS3c3jR3F2GqJGw8AZx2mo6Y2dkezI-OrxqqwBnQJ6fdPQJHIpDi4Er2nl61S-Cg

A verifier with now = 1764872400 and no store entry accepts it; it lists device q2bS9xVg3m0yJpQe1vT0Aw with the dkf of §21.1, so IsDeviceValid for the DeviceCertificate of §21.3 returns valid. With now = 1764958860 or later (exp + skew) the same verifier fails it with state_stale.

21.5 IdentityState (insecure)

Payload: {"iss":"a.com","sub":"carol@a.com","inc":"0NHS09TV1tfY2drb3N3e3w","ver":1,"sec":"insecure","igen":0,"devices":[],"revoked":[],"iat":1764872400,"exp":1764958800}

eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkc3RhdGUrand0Iiwia2lkIjoiYS5jb20jMjAyNi0xMmEifQ.eyJpc3MiOiJhLmNvbSIsInN1YiI6ImNhcm9sQGEuY29tIiwiaW5jIjoiME5IUzA5VFYxdGZZMmRyYjNOM2UzdyIsInZlciI6MSwic2VjIjoiaW5zZWN1cmUiLCJpZ2VuIjowLCJkZXZpY2VzIjpbXSwicmV2b2tlZCI6W10sImlhdCI6MTc2NDg3MjQwMCwiZXhwIjoxNzY0OTU4ODAwfQ.gcKRQzDBezI-2BNuQ0cjm7zNeUL0c6IDhJEgXFKWX5Iqo-DLTLAKCAeh3yCgt9d8EhkM3E-o2usqhGxA5zsuCw

21.6 DeviceRevocation

Header: {"alg":"EdDSA","typ":"sv-devrevoke+jwt","kid":"kPrK_qmxVWaYVA9wwBF6Iuo3vVzz7TxHCTwXBygrS4k"}

Payload: {"sub":"alice@a.com","igen":1,"did":"Yx3kP0aL9qR2sT5uV8wZ1A","iat":1764850000}

eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWRldnJldm9rZStqd3QiLCJraWQiOiJrUHJLX3FteFZXYVlWQTl3d0JGNkl1bzN2Vnp6N1R4SENUd1hCeWdyUzRrIn0.eyJzdWIiOiJhbGljZUBhLmNvbSIsImlnZW4iOjEsImRpZCI6Ill4M2tQMGFMOXFSMnNUNXVWOHdaMUEiLCJpYXQiOjE3NjQ4NTAwMDB9.k0PcMnf0EV5DT6iEfRzUbCzyXS1cqpqyHacCG3smTmlI1yUwm99ry41Qrrj_7D8BrR8KQ1rZ0qXcKmFuBfi5CA

21.7 sv_device credential

The Credential for Alice's desktop leaf is the concatenation:

Field Bytes
credential_type f5a0
length of identity_certificate (402, varint) 4192
identity_certificate the 402 ASCII bytes of §21.2
length of device_certificate (563, varint) 4233
device_certificate the 563 ASCII bytes of §21.3

Total length: 971 bytes. The first 8 bytes are f5a0419265794a68. SHA-256 of the whole encoding: 2b6d41b8582f3caf293b5a6b21bca8a7595ccedca3addf68973b54d3fb4ab56f.

ValidateSvDeviceCredential with signature_key = 3d4017c3…4660c (Alice's DSK) returns (alice@a.com, Alice's identity key, 1, user, q2bS9xVg3m0yJpQe1vT0Aw, Alice's DSK, Alice's box key, desktop). With signature_key = Alice's identity key it fails dsk_mismatch.

21.8 Safety number

Input Value
A alice@a.com (UTF-8 616c69636540612e636f6d), Alice's identity key
B bob@b.com (UTF-8 626f6240622e636f6d), Bob's identity key
Initial h prefix 73763120736166657479000001 (sv1 safety, 0x00, version 1), then the key and address
First 30 bytes of A's final hash 9f74ca18beb49156e91e2887070c1016bb549cddac04525ba229b95d7b8d
Fingerprint(A) 017260537477840650858118670573
First 30 bytes of B's final hash 167d5f4f51e0570512068d99cb2235306b2dea7262d245d822517e05cd04
Fingerprint(B) 787372439015349014588768260356
SafetyNumber(A, B) 017260537477840650858118670573787372439015349014588768260356
Display 01726 05374 77840 65085 81186 70573 78737 24390 15349 01458 87682 60356

Unicode address: Fingerprint of Bob's identity key with address zoë@b.com (UTF-8 7a6fc3ab40622e636f6d, ë as U+00EB after NFC) is 042106406515928322332008534211.

21.9 QR payload

Alice's device verifying Bob, with nonce 000102030405060708090a0b0c0d0e0f:

VerifyQR (hex):
01 000102030405060708090a0b0c0d0e0f
000b 616c69636540612e636f6d
d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a
0009 626f6240622e636f6d
278117fc144c72340f67d0f2316e8386ceffbf2b2428c9c51fef7c597f1d426e

QR text:
SVV1:AQABAgMEBQYHCAkKCwwNDg8AC2FsaWNlQGEuY29t11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURoACWJvYkBiLmNvbSeBF_wUTHI0D2fQ8jFug4bO_78rJCjJxR_vfFl_HUJu

Bob's device, holding a pin for alice@a.com with Alice's identity key and owning Bob's identity key, accepts it.

21.10 Negative cases

Each case starts from the valid objects above and changes one thing. Implementations MUST produce the result shown. (Re-signed variants are built with the same keys; their exact bytes are published in spec/vectors/07-identity.json in the format of 04 §16.2 (status tbd until computed).)

# Change Expected result
N1 IdentityCertificate header kid replaced with Bob's ikf malformed (§5.3 step 4)
N2 DeviceCertificate re-signed with "plat":"bot" under a kind: user certificate kind_mismatch
N3 DeviceCertificate re-signed with "igen":2 generation_mismatch
N4 IdentityState re-signed with "ver":16 after the vector of §21.4 was accepted state_rollback
N5 IdentityState re-signed with "ver":17 and an extra device state_equivocation
N6 IdentityState re-signed with "iss":"b.com" issuer_mismatch
N7 IdentityState with exp − iat = 86,401 state_stale
N8 Credential of §21.7 presented with signature_key = Bob's identity key dsk_mismatch
N9 IdentityCertificate re-signed with "sub":"Alice@a.com" non_canonical
N10 IdentityState whose devices lists the device with Bob's ikf as dkf IsDeviceValid returns dkf_mismatch
N11 One byte of the §21.2 signature changed bad_signature
N12 IdentityCertificate whose JWS header contains "jwk" malformed
N13 IdentityState re-signed with "ver":18, "igen":1 and "sec":"insecure" (no idc, no devices) after the vector of §21.4 was accepted state_equivocation (sec changed without igen)
N14 IdentityState re-signed with "ver":9007199254740991 by key a.com#2026-12a, accepted, after which a.com's metadata lists that key as revoked with an rvt such that the verifier accepted the state at or after rvt − 60 s by its own clock The verifier discards the stored state (§7.5) and then accepts a valid state with "ver":18
N15 DeviceCertificate re-signed without dbk malformed
N16 DeviceCertificate re-signed with a dbk whose crv is "Ed25519" malformed

22. Security considerations

22.1 A malicious or compromised home server

A home server is trusted to say which identity key and devices are current for its accounts (00 §5.2). It can:

  • Publish a key it generated, as a reset (igen + 1). Channel members accept it silently (D-035, 00 §10 item 1). DM contacts see W2, and verified contacts are blocked until they decide (§16.5). The victim's own devices see W4a, unless the home server also shows them a different view (next point).
  • Equivocate, showing different IdentityStates to different verifiers. Each verifier keeps the highest ver, and two states with the same ver and different content are proof of equivocation (§7.3, §7.4 step 9). The user's own devices also accept their own IdentityState from hosting servers' annotations (§18.4), so a split view between the user's devices and the rest of the federation is noticed as soon as one hosting server relays the newer state. In channels the victim also sees W4b when a leaf with another key appears under their address (§18.2). There is no global audit log in v1 (§23, OQ-07-2).
  • Withhold or delay IdentityStates and events, which stops new secure joins for its users (§13.3 C3) and holds DM commits (§14.5). This is denial of service, not impersonation.

It can't add a device under the existing identity key, because it lacks the identity key (§9), and it can't read KeyBackup or the AccountVault (08).

22.2 A stolen identity key

Someone holding a copy of the identity key but no home session can't enrol a device (the home server won't list it), can't publish a DeviceRevocation (verifiers accept them only from the home server, §8.2), and can't register a new generation. Combined with an OIDC account takeover, they can enrol devices: the victim's devices see W4c, and the victim revokes the device (D-017). In v1 there is no rollover to a new key that contacts accept silently (D-072). A user who believes the identity key itself was copied can reset, at the cost of W2 for DM contacts.

A stolen DSK is one removable leaf: revoking the device removes it from every group (§11.8, §13.4, §14.4) and, because the DSK signs SealedMessages and MediaAttestations, its later output is rejected wherever the device is no longer valid.

22.3 OIDC takeover and immediate resets

The owner chose no reset hold (D-071). Whoever controls the user's OIDC login can reset the identity at once. Consequences and mitigations:

  • In channels the reset is silent for other members. Only the victim's devices notice (W4a, and W4b if the attacker's device joins a channel the victim is in).
  • The reset gives the attacker no earlier group content (revised D-007): in channels the membership continues but nothing hands the new identity a history key, so the ciphertext it is served stays unreadable (only pre-upgrade plaintext, which was never encrypted, stays readable, 22 RR-46); in DMs and group DMs the re-add starts a new membership and the new identity is served nothing from before it (12 §11.5). A member could still share earlier messages with the new identity deliberately; every other member sees it (K8, 22 RR-55).
  • Every DM contact sees W2. Verified contacts can't send until they decide. A reset followed by a downgrade doesn't lift that block: a verified contact's pin moves to downgraded_blocked, and nothing is sent in the now-insecure 1:1 DM until the contact explicitly accepts (§15.4, §16.5).
  • The fresh-authentication requirement (§11.6, 05 §9) stops an attacker who has only a stolen session or refresh token, without the provider login, from resetting. The same rule protects the owner's other devices from being revoked through §11.7 by someone holding a stolen enrolled device.
  • The rate limit of 5 generation changes per 24 h bounds W2 floods.
  • After a hostile new_key reset, the victim's old vault is retired for 30 days (§15.2 step 7, 08 §8.12). A victim who still has an old device can take the account back with a new reset and then pair that old device to the new identity, which imports the old pins and history keys (§16.7, 08 §11.4). The old recovery key alone doesn't help, because the old KeyBackup is deleted at the reset. After a hostile downgrade every vault is deleted (08), and nothing can be recovered.

22.4 A hostile first upgrade

An attacker who controls the provider login of an insecure account can turn encryption on with a key of their own. A stolen session token alone is enough only within 24 h of that session's last provider sign-in, because turning on encryption needs fresh authentication with maxAgeMs 24 h (§11.4, 05 §9.1, D-085). Nobody has pins for that account, so contacts pin the attacker's key silently, and the victim's devices see "Approve this device", which they can't complete; if the attacker signed in to do it, they first see W4d for that sign-in (D-084, 05 §12.12). When the victim later resets, contacts see W2. This is inherent to trust on first use and to D-071 (22 RR-10). The banner's "This wasn't me" action (20 §9.5) gives such a user a way to act.

22.5 A malicious hosting server

  • Channels. As the Authentication Service, it decides who is admitted, and can admit accounts it controls; they appear in the member list (00 §10 item 2). It can also put a leaf with a fabricated IdentityCertificate for a user of another server into its own channel. Member clients detect this only through the background check S2 (§13.6), whose failures are diagnostics sent to the hosting server and the client's own home server, never warnings (D-035). The impersonated user, if present, sees W4b. 00 §5.2 and §10 item 1 state this limit; §23 OQ-07-1 discusses closing it.
  • DMs. It can't add a person (sv_participants and pins, §14.2) and can't make a client accept a changed key without the contact's home server signing the change (§16.4). It can drop, delay and remove, which is denial of service.

22.6 Rollback and replay

An IdentityState lasts at most 24 h, and verifiers never accept a lower ver than one they have seen. An attacker who replays an old, unexpired IdentityState can only fool a verifier that has never seen a newer one, for at most 24 h. The channel AS uses only states validated within 300 s (§13.3), and a HomeAssertion binds the state's igen, ikf, dkf and minimum ver (isv, §13.1). Certificates have no expiry; they are only meaningful when a current IdentityState names them.

The flip side of "highest ver wins" is ver poisoning: whoever holds a home-server sign key could sign one state with a huge ver and lock the account out of every verifier that accepts it. Once the key is listed as revoked (02), verifiers accept nothing new signed by it, discard every state signed by it that they didn't themselves accept before rvt − 60 s, and refetch (§7.5, 02 §11.7). A home server that loses its own counters must jump ver forward (§7.3) for the same reason.

22.7 Positive evidence and slow revocation

Clients and servers never remove a leaf because evidence expired (§13.4, §14.4). This keeps groups stable through home-server outages. The cost is that a revoked device whose revocation never reaches a verifier stays in that verifier's groups. S2S retries for 24 h (06), hosting servers revalidate every subject with leaves in a secure group every 24 h (§13.4), and lease revocation cuts calls independently (15), which bounds the exposure.

22.8 Privacy of the public identity endpoint

GET /v1/users/{local}/identity is public so anyone can compute DM security (12) and validate identities. It reveals whether an account is secure, how many enrolled devices it has, each device's platform and enrolment time, and recent revocation times. Address existence is already public through 01. Rate limits (§11.2) slow scraping. Before accepting a message request, a client never fetches from other servers (§14.7), so first contact doesn't reveal its IP address.

22.9 Strength of verification

Each 30-digit half of the safety number carries about 99.7 bits. Finding an identity key whose half matches a victim's half for a given address costs about 2^99.7 attempts of 5,200 SHA-512 operations each. The QR code compares the full 32-byte keys of both people and both addresses, so it has no truncation at all. Users who compare only part of the safety number get less; clients show all 60 digits (§17.1). The nonce and the 10-minute validity limit the reuse of a photographed code (§17.2).

22.10 Reused addresses

After an account is deleted and its quarantine ends, someone else can register the address (01). ver and igen continue, the key history forbids reusing old keys (§3.4, §11.9), and the new account has a new inc (D-086). Every server keys its records on (address, inc) and treats the earlier account as deleted the first time it sees the new inc (06 §11.6), so the new holder inherits no membership, role, DM participation or verification. Contacts' clients rewrite their pin for the new account and show W2's new-account wording in the 1:1 DM (§16.8), which 12 reopens as a new conversation without the earlier messages (12 §6.4). Bans stay keyed by address (10 §9.2).

22.11 Web clients and bots

A web client is only as trustworthy as the origin that serves it (00 §10 item 4). A compromised origin holds both the identity key and the session, so dual control doesn't help there. The identity key is unwrapped only for the operations of §3.3 (D-065). Whoever runs a secure bot holds its identity key and reads what it reads (W6). A stolen bot token is enough to reset a bot's identity (§15.6); the bot's DM contacts then see a bot-worded W2.

22.12 Clock skew

All time checks allow 60 s of skew (00 §7.7). A client with a badly wrong clock may treat valid IdentityStates as expired (its DM admissions are then held, §14.5) or accept expired ones. Clients SHOULD warn about a wrong clock through their general diagnostics (20), never through a security warning.

22.13 Box keys

The DeviceCertificate binds each device's box key (dbk) under the identity key (§3.6). A hosting server, a home server or a member therefore can't substitute a box key of its own for a recipient's device: a HistoryShare's K_share (14) and a VaultKeyGrant (08) are sealed only to keys the recipient's identity certified, and a home server can't add a box key because it can't sign a DeviceCertificate (dual control, §9). The box key never signs. A stolen box key exposes only what was sealed to that device, which the device could read anyway; revoking the device delists it, so no new share or grant is sealed to its key.

23. Open questions

OQ-07-1. Can a hosting server fabricate users of other servers in its channels? 00 §5.2 lists this among the things a hosting server "can never" do, because clients check the chain to the user's home server. But 00 HP-2 and D-035 make that check a SHOULD whose failures are diagnostics only, and the local chain check (S1) can't detect a self-consistent certificate made up by the server. So a malicious hosting server can make a fake dan@d.com appear in its own channel, and only diagnostics reveal it. This document follows HP-2. Recommendation: make S2 a MUST, and have clients silently stop showing content and playing media from a leaf whose IdentityState positively fails (a bad signature, or a state from the home server that doesn't list the device), exactly as they silently stop a source whose MediaAttestation fails (D-043). That adds no warning, keeps channels silent, and makes the 00 §5.2 statement true. 00 §5.2 and §10 item 1 now say such fabrication is detected only by diagnostics; the recommendation above stays an option after v1.

OQ-07-2. Key transparency. A home server that equivocates consistently, showing the victim's devices one state and everybody else another, is caught only when a relayed state reaches one of the victim's devices (§18.4) or by W4b. Recommendation: accept this for v1 and consider an append-only, gossiped log of IdentityStates (in the style of the IETF key transparency work) after v1.

OQ-07-3. Re-admitting a reset user to a 1:1 DM. After Saxon resets, his new device can't join existing DM groups by external commit, because sv_participants lists his old key. Only the contact's client can admit him (§14.2), so Saxon can't send in an existing DM until the contact's device is online and, for a verified contact, until the contact accepts the new key. Recommendation for 12 and 13: let the reset user's client start a new generation of the DM group (new group_id generation, Welcome to the contact's KeyPackages), so his messages can be delivered at once; the contact's client admits the Welcome only after the pin check of §14.2, which raises W2 and, for verified contacts, keeps the block. Either way the identity rules here are unchanged.

OQ-07-5. Public device details. 00 fixes plat and since in the public IdentityState. Recommendation: keep them (they cost little and help W4c and support), but the owner may prefer to drop plat from the public view for privacy, in which case W4c would read it from GET /v1/me/identity only.

OQ-07-6 (a new owner of a reused address) was settled by the owner on 2026-12-04 with D-086: inc in IdentityState (§7.1), new-account evidence for pins (§16.3, §16.4) and W2's new-account wording (§16.8).

24. References

24.1 Normative

  • RFC 2119, RFC 8174 — requirement key words
  • RFC 5234 — ABNF
  • RFC 8259 — JSON; RFC 7493 — I-JSON
  • RFC 4648 — base64url
  • RFC 3339 — timestamps
  • RFC 7515 — JSON Web Signature; RFC 7517 — JSON Web Key; RFC 7519 — JSON Web Token (NumericDate)
  • RFC 7638 — JWK thumbprint
  • RFC 8037 — EdDSA and OKP keys in JOSE
  • RFC 8032 — Ed25519
  • RFC 7748 — X25519 (box keys, §3.6)
  • RFC 9180 — HPKE (keys sealed to box keys)
  • FIPS 180-4 — SHA-256 and SHA-512
  • RFC 9420 — Messaging Layer Security (credentials, TLS presentation language, variable-length integers)
  • RFC 8446 §3.4 — TLS presentation language vectors with fixed-length prefixes (VerifyQR)
  • RFC 9457 — problem details for HTTP APIs
  • RFC 9110 — HTTP semantics (caching, ETag, If-None-Match)
  • ISO/IEC 18004 — QR code
  • Sloppy Voice specification: 00 (overview), 01 (addresses), 02 (discovery and server keys), 03 (transport), 04 (crypto conventions), 05 (accounts, devices and fresh authentication), 06 (federation), 08 (device setup, KeyBackup and the vault), 09 (communities and channels), 11 (messaging), 12 (direct messages), 13 (MLS profile), 14 (sealed messages), 15 (calls and diagnostics), 18 (media E2EE), 20 (client requirements), 21 (operations)
  • spec/DECISIONS.md — decision log

24.2 Informative

  • RFC 9750 — MLS architecture (Authentication Service)
  • Signal, "Safety number updates" and the numeric fingerprint construction (libsignal NumericFingerprintGenerator) — model for §17.1
  • draft-ietf-keytrans-protocol — key transparency (OQ-07-2)
  • RFC 8265 — PRECIS usernames (address preparation, via 01)
  • Unicode UTS #39 — confusables (address registration, via 01)