Skip to main content

Module revoke

Module revoke 

Source
Expand description

The master-key proof that authorizes a global sign-out (SSoT: Authentication — Explicit Revocation).

§The asymmetry this exists to create

Revoking one session is authenticated by any live session token. Revoking every session is not, and deliberately: an attacker holding a stolen token could otherwise invoke “log out of all devices” and lock the legitimate user out of every device they own. Gating the global revoke on a signature by the account’s identity key means a stolen token can revoke only itself — it cannot escalate a theft into a denial of service.

§Why the message is built here rather than at each end

The server verifies this proof and a client produces it, so it is a two-ended format — and a two-ended format defined twice is one edit away from a signature that stops verifying. This is the same reasoning that moved the custody receipt into crate::crypto::receipts, with one difference that makes it cheaper: the signed message is a byte string rather than a CBOR map, so there is no key-ordering trap. The trap that remains is the domain separator, and that is exactly what a shared constant removes.

§Domain separation is not decoration

The IK signs several things — the device directory core, and this. A bare challenge is a short opaque string, and a signature over one is a signature over anything else of that shape. Prefixing every revoke-all proof with REVOKE_ALL_DOMAIN means a signature produced for one purpose cannot be replayed as the other, whatever a future ceremony chooses to sign.

Constants§

REVOKE_ALL_DOMAIN
The domain separator every revoke-all proof is signed under.

Functions§

revoke_all_signing_bytes
The exact bytes a revoke-all proof signs, for challenge.
verify_revoke_all_proof
Whether signature is a valid revoke-all proof for challenge under identity_key.