Key hierarchy
veyq encrypts content under layered envelopes: an account’s keys open a scope’s key, the scope’s key opens each node’s key, and a node’s key opens its blobs. Every layer is a separate random key wrapped by the one above it, so the server stores only wraps it cannot open. This page walks the four layers (account, scope, content, sharing) and explains why the layering is cut where it is.
The shape
Section titled “The shape”unlock method ──KEK──▶ Master Key ──▶ identity private key │ opens a signed grant ▼ scope key K_SC (epoch n, one at a time) │ wraps ▼ node key (folder / Memory / chapter …) ──▶ child node keys │ wraps ▼ K_blob ──▶ chunk frames
share link: K_share (URL fragment) ──wraps──▶ one node key K_SC ──wraps──▶ K_v ──seals──▶ recovery copy of K_share K_share ──seals──▶ drop public key (uploader links: no node key at all)Every value an author writes at scope level — a member’s tenant name, picture and join record, a verification, a
Memory’s item marks, a group’s name and a space’s icon, a link’s recovery copy — hangs off K_SC the same way: under a
value key K_v of its own, minted at every write, which K_SC wraps.
Three keys sit beside the hierarchy and decrypt nothing: the auth keypair (login), the Secret-Key proof keypair (authorizes credential changes) and each scope key’s succession keypair (vouches for the scope key that replaces it, Layer 2).
Why it is layered this way
Section titled “Why it is layered this way”Cheap grants. A member is admitted by sealing one key, the scope’s current epoch key, to their identity.
From it they open the whole tree: every node’s key is wrapped under its parent’s key and its name
sealed under a field key derived from it, K_SC at the root (ADR 0012,
ADR 0080
Decision 2). Adding a member never touches content.
The share grain is cryptographic. Node keys are random, not derived from K_SC. A share is one
additional, independent wrap of one node’s key, which reveals neither K_SC nor any sibling’s key, because no
parent key is derivable from a child’s. ADR 0012 rejected the alternative, one content key per scope, because
sharing one Memory would then hand out the whole scope’s key and leave the other Memories’ confidentiality to
server gating instead of cryptography. A chapter carries its own key for the same reason: adding per-chapter
sharing later would have forced a client-side re-encryption of every chapter’s media.
A rotation replaces the scope key and every node key, and re-encrypts nothing. K_SC is replaced, never chained: a
rotation mints one fresh random key at the next epoch and grants it to each remaining member
(ADR 0024,
ADR 0115).
A rotation re-wraps keys and never rewrites a value. Before its commit the rotating client re-wraps, under the new
key, the value key K_v of every scope-level value — a group’s name and a space’s icon, each link’s recovery copy, a
tenant’s member names, pictures, join records and verifications, a Memory’s item marks — and re-seals each scope-root
node’s entry, the one exemption, since any member may write one; the commit swaps them all in with the epoch, or
nothing, and refuses a stage that writes a value (422 rekey_writes_value). A wrap is bound to the value’s address
(SHA-256 of its own seal context), so a wrap moved onto another value does not open, and a value under a K_v the
rotator substituted does not open either: a rotator, owner or member, can make a value unreadable, never another one.
No record keeps the old key. Every live and trashed node of the scope is then due and is re-keyed top-down, one atomic commit per
node: a fresh node key, every field sealed under the old key re-sealed under it, each K_blob re-wrapped and kept, no
store object read or written (ADR 0109). Per node that is one key and its children’s
entries, per medium its blob wraps and two field seals, all symmetric and all in the database: a Chapter of 1,000
photos is about 5,000 seals, about 20 requests. Until a node is re-keyed, a write into it is refused
409 node_rekey_pending: a member’s client re-keys that node’s path itself and retries, a guest’s waits; a write
stating a node key from before is refused (409 stale_epoch). Any member holding the new epoch may re-key, a
Memory’s drop key included, except a drop box, a guest’s identity folder and what lies below one, which only an owner
re-keys
(ADR 0111 decision 11). ADR 0024 rejected
full re-encryption on every removal (gigabytes re-keyed per leave, for content that is existing but unopened).
Replaced, so one rule holds at every level. After a rotation the live store holds everything under the new key,
so an old key — a removed member’s, a lost device’s — opens nothing in a dump taken after it; only a dump from before
the rotation does, which takes an operator already malicious and archiving then. A later-turned operator, a backup
taken after the rotation and a new operator are kept out. What this adds over the chain it replaced is narrow: node
keys, and with them the media, were already replaced at every rotation (ADR 0109); replacing K_SC extends that to
the scope-level values, and it guards only what the key’s holder had not extracted — whoever held the key could hand
over whatever they decrypted while they held it. The other reason is one model at every level: no key is chained. The price is a rotation that
re-wraps every scope-level value key on the rotating device (a tenant of 300 members moves about 900 wraps, some 55 KB,
down and up), and a member it could not grant at once reads nothing of the scope until re-granted. What the re-key
leaves in the excluded party’s reach: a re-key re-wraps keys and re-encrypts no content, so a K_blob they extracted
still opens that blob’s bytes in a later dump (what is added later gets blob keys of its own), and a K_v they
extracted opens that one value in a later dump until its author writes it again — content they could read anyway; and
every open link they could rebuild, until it is closed or re-issued (Layer 4).
But removal is still O(N), so whether it rotates is a per-scope policy. A new epoch must be wrapped to
every remaining member’s identity, because nobody holding only the old epoch can derive the new one. That is a
hybrid post-quantum wrap per member, concentrated on the removing device and linear in the scope’s size.
ADR 0025
therefore decides per scope type:
| Scope | On a member removal | Why |
|---|---|---|
| Group | Always rotates, in the same request as the removal | Small N, deliberate and often sensitive sharing |
| Tenant | Membership deleted (instant 403), no rotation; an explicit re-key exists for a compromise |
The primary, potentially large scope; rotation buys protection only against an operator colluding with the ex-member |
| Personal | Never (nobody to rotate away from) | One member |
Deleting the membership already stops an honest operator from serving anything new. Rotation adds protection
against a malicious operator who feeds a removed member post-removal ciphertext. ADR 0025 weighs that
narrower threat against an O(N) burst on every routine tenant removal, and cites 1Password’s shared vaults, which
also revoke by access control and leave re-keying as an explicit, rare action. The one escalation the ADR names
for cheap rotation at large N is a key tree (MLS/TreeKEM); it was not taken.
Unlock is decoupled from content. One Master Key is wrapped separately per unlock method, so adding or removing a method writes or deletes one wrap and never re-encrypts anything. Login is a separate keypair, so breaking it yields a session and operational metadata, never content (ADR 0003).
Layer 1: account keys
Section titled “Layer 1: account keys”Normative detail: en.account.key-model.
What each account key is for:
- Secret Key — the high-entropy half of every cold unlock. Mixed into the password unlock, it makes a password cracked from a database dump useless on its own; it is also the recovery factor, and it proves to the server that a credential change comes from the account’s holder (the proof keypair below).
- Unlock KEK — opens exactly one wrap of the Master Key. There is one KEK per unlock method; the Master Key itself is one per account.
- Master Key — the account’s root. It opens the identity private key, and it seals the account’s own private state (the identity-pin store, the device register, private node pins).
- Identity keypair — the account as other members see it. Scope keys are sealed to its encryption key; its signing key signs every grant the account issues. The safety number is computed over it; a contact pins the head of the account’s key chain, which names it.
- Auth keypair — signing in. It proves knowledge of the password to the server without sending it, and opens nothing.
- Secret-Key proof keypair — authorising credential changes. It proves possession of the Secret Key to the server without sending it, and opens nothing.
| Key | How it is made | What wraps it | Who holds it | When it rotates | What losing it means |
|---|---|---|---|---|---|
| Secret Key | 256 random bits, generated on the device at account birth | Nothing. It is printed in the Emergency Kit — 52 Crockford base32 symbols and 2 check symbols (the first 10 bits of its SHA-256), so nearly every mistyped key is caught before any derivation — and never stored server-side | Only the user (Emergency Kit). A device uses it once, at the first sign-in there, and stores it nowhere; it keeps its own automatically written wrap instead (DEVICE, or DEVICE_KEY with Stay signed in on this device on). A device linked by QR never sees it (ADR 0059) |
Only when the account is secured: the rotation mints a new one and issues a new Emergency Kit, saved and confirmed before anything is published; the old kit stops working. A password change, a reset and a change of the sign-in address keep it | Recovery narrows to another enrolled device, and the account can no longer be secured (ADR 0060 Consequences) |
| Unlock KEK (one per method) | Derived fresh on the device each unlock (see the table below), then discarded | Not wrapped; never stored or sent | Nobody at rest | Changes with its inputs (a new password, a new device key) | Its one wrap no longer opens; other methods still do |
| Master Key | A 32-byte symmetric key, generated on the device at registration | One copy per unlock method (MasterKeyWrap), each under that method’s KEK: still one key, many locks |
The unlocked client; the server stores only the wraps | Only in a compromise rotation, together with the identity. A password change or reset keeps it | Losing every unlock path loses the account’s content; there is no escrow |
| Identity keypair: a hybrid post-quantum encryption key and an Ed25519 signing key | Generated on the device at registration | Private half: only under the Master Key. Public half: published in the key directory | The unlocked client; the public half is visible to fellow members | Only together with the Master Key | Same as the Master Key: it exists only wrapped under it |
| Auth keypair (Ed25519) | Derived from the password with Argon2id over a salt derived from the account address | Not wrapped; the private key is derived on demand, never stored or sent. The server stores the public key | Derived on the client at sign-in | Whenever the password changes (re-derived, public key re-registered) | A forgotten password: one of the recovery paths below. A cracked one: a session, never content |
| Secret-Key proof keypair (Ed25519) | Derived from the Secret Key alone | Not wrapped. The public half is registered at account birth | The client, whenever it holds the Secret Key | With the Secret Key: securing the account registers the new public half under a signature of the current one | It decrypts nothing; without it the server refuses rotation, password change, recovery completion and a change of the sign-in address |
The identity key’s two halves do different work. Others seal scope grants to its encryption key; its signing key
signs every grant this user issues. Its public bundle is what the safety number is computed over, and the key chain’s head that a contact pins names it
(ADR 0028;
Protocols). The Master Key also seals the account’s identity-pin store — one entry
per pin, at an id derived under a key of its own (veyq/v1/identity-pin-index), and a head over all of them — and the
device register, which is why a rotation re-seals both in the same transaction, every pin entry moving to the new
key’s ids.
Unlock methods
Section titled “Unlock methods”Why one KEK per method. The Master Key is random, and everything the account can read hangs on it. It is never stored as itself: the server keeps only wraps of it, one per unlock method, each under that method’s own KEK. So changing the password, or adding or removing a device, rewraps 32 bytes and re-encrypts nothing else; losing one method leaves the others working; and the server, holding only wraps, can open none of them.
| Method | KEK input | Notes |
|---|---|---|
PASSWORD |
Argon2id over the Secret Key and the password | The mandatory floor; cannot be removed. The Secret Key is why a password cracked from a database dump opens nothing |
RECOVERY |
Argon2id over the Secret Key alone | The server withholds this wrap until a mailed one-time token and a Secret-Key proof signature are both presented (ADR 0054). There is no separate recovery code |
DEVICE |
Argon2id over a device-bound key’s HMAC output and the password | Written when you sign in with Stay signed in on this device off. The device key is a non-extractable WebCrypto HMAC key, so no script can export it (the bind it computes can still be copied once); device and password are two factors, so a stolen device alone opens nothing |
DEVICE_KEY |
A random key held on the device | Written when you sign in with Stay signed in on this device on. Passwordless: a stolen unlocked device opens content |
The two device methods, in plain terms. The first time you sign in on a device you type your password and your Secret Key. After that the device keeps one wrap of its own, and which one depends on the sign-in toggle Stay signed in on this device:
- Off —
DEVICE. This device unlocks with your password alone; you never type the Secret Key here again. Its KEK mixes the password with an HMAC from a key the browser holds and cannot export, so the device and the password are two factors: a stolen device without the password opens nothing. - On —
DEVICE_KEY. A random key held by the device wraps the Master Key, with no password at all, so the device opens straight in across a restart. A stolen device that is unlocked, or that holds this key, opens content. That is why it is an explicit choice.
A device holds one of the two, never both: changing the toggle replaces one wrap with the other. Untrust this device deletes it, and the next unlock there needs the Secret Key again.
Each KEK is derived with a stored salt, used to open its one wrap, then discarded. A password change, a reset and a rotation keep only the two cold wraps (PASSWORD,
RECOVERY) and delete every other one, so a device-held KEK does not outlive the credential it was enrolled under.
A passkey method is designed but not built; see Roadmap.
A linked device receives the Master Key and the identity private key on one human confirmation, but never the password or the Secret Key (ADR 0059). That gap is what the next section relies on.
The Secret-Key proof keypair
Section titled “The Secret-Key proof keypair”An Ed25519 keypair derived from the Secret Key alone; its public half is registered at account birth. Every request that mints a cold credential — a key rotation, a password change, completing a recovery, changing the sign-in address — must carry a signature with it, and the server checks that signature against the registered public key (ADR 0060 Decision 2). It changes only when the account is secured: the rotation registers the new public half under a signature of the current one and a signature of the new one, which proves the new key is held. So the server can check that the requester holds the Secret Key without ever seeing it, and someone who has only the password, a session, or a linked device (which never receives the Secret Key) cannot replace the account’s keys or credentials. It is a check the server runs, so it binds every caller except the operator.
Rotation after a compromise
Section titled “Rotation after a compromise”The Master Key, the identity keypair and the Secret Key rotate together, always, as one step of the account’s key chain: the identity private key exists only under the Master Key, so a leaked identity implies a leaked Master Key, and someone holding the password and the Secret Key is otherwise indistinguishable from the holder (ADR 0060 Decisions 1 and 2). The step is signed by the old identity and the old Secret-Key proof key; a phished linked device holds the identity but never the Secret Key, so it cannot rotate first and lock the holder out, and it cannot sign a step anyone accepts. The new Emergency Kit is saved and confirmed before anything is published.
Access moves first, security after. One transaction appends the step and re-grants every scope the account
holds a grant on, in every tenant, at its current epoch, to the new identity; the grants were staged just before and
are verified under that identity (Protocols).
The same transaction installs the new identity as the signer of the account’s open member invites, which it
re-signed, and writes its endorsements of the join records it rooted, so neither ends with the old key. Then
the account mints each scope’s next epoch itself, from any of its devices, and any member re-keys the nodes
(ADR 0111 decisions 6–11, 20 and 21). No retired private
key is kept anywhere; the chain keeps the retired public keys. Other members accept the new identity because the
chain reaches it from the head they pinned, with no review. Every DEVICE and DEVICE_KEY wrap dies. Rotation is
forward secrecy, not repair: what was already read stays read.
Recovery
Section titled “Recovery”Every path back runs through the Secret Key or a device that already holds the keys: another enrolled device;
the Emergency Kit plus the password on a fresh device; or the Emergency Kit alone, which opens the withheld
RECOVERY wrap after a mailed link. Because recovery restores the Master Key itself, every scope comes back at
once. Losing every path is the documented, accepted residual loss
(security-model § Recovery).
Layer 2: scope keys
Section titled “Layer 2: scope keys”A scope (personal, group or tenant) has one content key at a time, K_SC. Each rotation replaces it with a fresh
one; its epoch counts those replacements.
| Key / artifact | How it is made | What wraps it | Who holds it | When it rotates | What losing or leaking it means |
|---|---|---|---|---|---|
Scope key K_SC at epoch n |
32 random bytes, minted on a client: epoch 0 when the scope is born, each later one by the client that rotates | Only the grants: each member receives it in one. No other key, older or newer, is sealed under it or over it | Every member whose grant is current | Per scope policy (table above), and in every scope of an account that rotates after a compromise; the rotation re-wraps every scope-level value key under the new key and rewrites no value | Leaked: the holder opens every value key, every value and node key stored under it — in a dump taken before the next rotation, nothing in one taken after but a value whose K_v it extracted, until that value is written again (see the residual below). A member whose grant is behind (a rotation left them out, or declared them pending) reads nothing of the scope until any online key-holder delivers the current one |
| Succession statement | At each rotation, the old key’s succession key — an Ed25519 key derived from it with HKDF (veyq/v1/scope-succession) — signs the scope id, the new epoch and the new key’s succession public key |
Not a key; stored server-side per epoch with its public key | Served to the scope’s members | One per epoch | Opens nothing, and no key is readable from it. A device accepts a later grant only if the statements lead from the key it held to the granted one |
| Grant | A seal of the epoch key to the member’s identity encryption key with the hybrid post-quantum KEM, purpose scope-grant, bound to the scope and epoch |
It is the wrap. It carries the granter’s Ed25519 signature over the scope id, the scope’s kind, the epoch, the recipient, a digest of the recipient’s identity bundle and a digest of the grant ciphertext | Stored as ciphertext on the membership; opened by the recipient’s identity private key | Born with the membership — a newcomer’s own self-grant at an invite’s accept, the adding owner’s at a group add — and re-issued at each new epoch: by the rotator for the members it keeps, otherwise by any online key-holder (grant delivery) | — |
| Invite key | An identity-shaped bundle (X-Wing + Ed25519) the inviting owner’s client derives from a 32-byte random seed, one per member invite; the owner signs its public half (invite-key statement: tenant, invite, SHA-256 of the bundle, expiry) |
The seed travels only in the invite link, sealed (purpose invite-link) under a key Argon2id derives from a generated 10-character code or an owner-chosen password |
The server stores the public half, the owner’s signature, a grant of the tenant’s current epoch wrapped to it and that grant again as the invite’s anchor; the invitee’s client derives the private half from the seed | Never; every tenant rotation re-grants each open invite or declares it pending (the anchor moves only with a rotation its owner commits), an owner who secures their account re-signs it with the new identity, and the invite’s key, grant and anchor are deleted when it is accepted, revoked, re-sent or expires | Leaked with its code before the accept: the holder opens the tenant keys the invite was granted and can redeem it. After a revoke the link and code still open those keys, with a dump taken before the tenant next rotates (the tenant does not rotate on removal) |
| Join record | Written by a newcomer’s client at an invite’s accept: its identity public key, its Secret-Key proof public key and the owner-signed invite, signed by the invite key and by the new identity (join-record statement) |
Sealed as the field member-join-record, bound to the tenant and the member, under a value key of its own that the tenant key wraps; a rotation re-wraps that key and never rewrites the record |
Every tenant member; the tenant’s first owner has none | Its content is never rewritten; when its owner secures their account, the new identity endorses it (join-endorsement over the opened record, never its envelope), and a record signed by a key the owner has since retired counts only with that endorsement |
Not a key; it records who joined through which owner’s invite, and every member’s client reads it as the anchor of that member’s key in the tenant |
| Verification | Written by a member’s client after a matching compare: the verifier’s identity signs the verification statement (tenant, verifier, subject, the subject’s key-chain head, the verifier’s own head) |
Sealed as the field member-verification, bound to tenant, verifier, subject and the epoch it was written at, under a value key of its own that the tenant key wraps; a rotation re-wraps that key and leaves the row |
Every tenant member; the server keeps one row per verifier and subject, addressed in the clear | Re-signed by the verifier’s new identity when they secure their account; a newer compare replaces it | Not a key; it counts only while it names the subject’s current head under the verifier’s current key |
The grant signature closes a gap on the receiving side. A seal to a public key needs only that key, so
without a signature the server could plant a scope key of its own choosing. A grant whose signed kind is
PERSONAL opens only if it is self-signed under the vault’s own signing key. A shared scope’s grant opens under
the granter’s pinned key, with a first-seen granter pinned on first use — in a group of the active tenant only when the
granter’s join record anchors them there
(ADR 0028
Decision 6). The server stores the signature and does not verify it.
The invite link anchors a newcomer to its owner. The invite key is minted and signed on the owner’s client, and its seed travels sealed together with the owner’s key-chain head, so an invitee whose client derives the key from the seed, walks the owner’s chain from that head to the key that signed the invite, and accepts a tenant key only as the owner’s own grant or one the tenant’s succession statements lead to from it trusts nothing the server served unchecked. The seal is mandatory for a mailed invite because the server mails its link: without the code, the operator holds the link but cannot open it except by guessing offline. An invite the owner shares as a link carries its code and never passes the server, which answers only its token (ADR 0129). The newcomer then grants the epoch to itself, so no other member has to be online (ADR 0111 decisions 1–5 and 19). Every other wrap to a member in a tenant — a rotation’s re-grant, a grant delivery, a group add — goes only to a key the recipient’s key chain reaches from the step their join record names, rooted at an owner this account anchors; a non-owner without a join record is never wrapped to, and an owner without one (the tenant’s first) is trusted on first use, from then on only where the chain reaches from the head this account pinned (Known limitations).
Freshness has one mark here. Each device remembers the highest epoch it has held for each scope and the succession public key of that key. It never seals under, and never opens a grant below, that mark, whatever current epoch the server reports, and it opens a later grant only through succession statements from the key it held (ADR 0115 decision 5). A member who never learnt of a newer epoch at all (a withheld rotation, a fork) is outside that mark (ADR 0024 Decision 6 and § Guarantee).
Layer 3: content keys
Section titled “Layer 3: content keys”Every node, whether a folder, a Memory, a chapter or an application’s own kind, carries its own random content key.
In Memories the key of a Memory or a chapter is called K_node.
| Key | How it is made | What wraps it | Who holds it | When it rotates | What losing or leaking it means |
|---|---|---|---|---|---|
Node key (K_node, a folder’s key) |
32 random bytes from the client that creates the node; never derived from K_SC or the parent |
Its parent’s content key, or K_SC for a scope-root node. A share adds independent wraps of the same key (Layer 4) |
Every scope member, down the tree; every open viewer or contributor link at or above the node | At every rotation of K_SC, and at every close of a viewable link at or above it: the re-key replaces it with a fresh key. The node’s epoch counts its replacements, its scopeEpoch names the scope epoch it was minted at (ADR 0109, ADR 0114). A move or rename re-wraps it under the (new) parent’s key, an O(1) write that leaves the subtree untouched |
Leaked: the node’s whole subtree, including names and everything created under it until the node is next re-keyed |
K_blob |
Random, one per blob | The content key of the blob’s direct owning node (a chapter’s media under the chapter’s key). Media a public uploader added sit under that uploader’s own key instead (Layer 4) | Whoever holds that node’s key | Never. A re-key re-wraps it under the node’s new key; moving media between a chapter and its Memory re-wraps only K_blob |
That one blob, in any later dump too: a re-key re-encrypts no content |
| Chunk frames | The blob’s bytes, encrypted in frames under K_blob with AES-256-GCM |
— | — | — | — |
A node’s directory entry (its sealed name and its blinded slug token) lives under its parent’s key, so
whoever holds a folder’s key reads every name and opens every key below it, and nothing beside or above it. The
name, like every field, seals under a key of its own derived from that key (below).
K_blob also seals the blob’s type, upload name and modification time (blob-meta). Because each K_blob is
random, identical bytes become different ciphertexts. Dedup across a space is declined
(ADR 0013),
so the server learns no content equality there. Inside one node, a cover or banner equal to a gallery item is a second
blob row on that item’s stored object, its K_blob wrapped again for the new row; the server sees which object it
shares. Frame layout:
sealFrame / openFrame in v1.ts,
vector chunk_frame.
Field keys. Every text or icon field (a node’s name and meta, a medium’s metadata, a bucket’s, a guest’s or a
share’s name, a share’s note, a member’s name and picture) seals under K_field = HKDF-SHA256(K_parent, salt, "veyq/v1/field/" + purpose). K_parent is the key the field belongs under: the parent’s key for a name, the node’s
own for its meta, K_share for a share’s fields, a guest’s identity key for its own, and for a member’s name and picture
the value’s own K_v, which the tenant’s scope key wraps.
The 16-byte salt is fresh on every write and travels inside the ciphertext, so one revision’s K_field opens that
revision of that one field and nothing else, and reveals nothing of K_parent. It is the key a report of one field
will hand over
(ADR 0093
§ 9). A group’s name and a space’s icon are not fields: each is sealed directly under its own K_v, fresh at every write,
because a pending invitee is handed the name’s. A rotation re-wraps both keys and leaves the invitee’s name key, which
is sealed to the invitee; a rename seals the new name’s key to every invitee, or clears it where the owner’s device
cannot anchor that invitee.
Layer 4: sharing keys
Section titled “Layer 4: sharing keys”A public link is a capability. The secret half lives in the URL fragment, which the browser does not send to the server.
| Key | How it is made | What wraps it | Who holds it | When it rotates | What losing or leaking it means |
|---|---|---|---|---|---|
K_share |
32 random bytes, minted by the client per share | Not wrapped for the link: it travels in the URL fragment. Members recover it from the recovery copy below. Under it sit the share root’s node key (symWrap(K_share, K_node), viewer and contributor links only), the field keys of the root’s name, the note and the private label, and the password’s reveal copy |
Anyone with the link; every member of the scope | Never for the life of a link. While it is open, a re-key re-wraps the root’s new node key under it, so the link keeps showing what is added; a closed link gets nothing new. Cutting someone off a link means closing it, or re-issuing it: a new id and a fresh K_share, the old link closed (ADR 0075) |
Leaked: the shared subtree while the link is open. Closing it stops new access on an honest server and re-keys the subtree, so with a dump it reads what existed at the close and nothing added after; what was already downloaded stays read |
Recovery copy (sealed_share_key) |
K_share sealed under a fresh value key K_v at the scope’s current epoch, bound to scope, node, share and epoch; mandatory on every share |
K_v, which K_SC wraps |
Every scope member; no link | Never rewritten: a rotation re-wraps its K_v under the new key, and the epoch the link was minted at stays beside it for the re-issue rule (ADR 0075). K_share is itself a key, so a wrap a rotator substitutes recovers no K_share at all, never one of its choosing; a copy so lost closes its link, key lost |
— |
| Drop keypair (hybrid post-quantum KEM) | Minted by the client of the member who creates a Memory’s first uploader link; one per Memory (a chapter has its own), not per share | Private half: under the node’s key. Public half: under K_share on each uploader share |
Private: everyone who reads the node. Public: uploader guests | At every re-key of the node (a rotation, or a viewable link’s close at or above it): a new keypair, the private half under the node’s new key, the public half re-sealed under each open uploader link’s K_share, every guest identity key re-sealed to it, the old private half discarded (ADR 0109 point 5) |
Private half leaked: what uploaders added to that node until its next re-key, and after it what a guest identity from before adds (below) |
| Uploader identity key | Random, minted by an uploader guest’s client | Wrapped to the drop public key | That guest, and every reader of the node | Never. A re-key re-seals it to the new drop public key; only a re-issue starts every guest over | That identity’s uploads: their blob keys, metadata and display name |
Why the recovery copy hangs off K_SC and not K_node. A viewer or contributor link holds K_node;
that is what the link exists to hand over. A copy under K_node would let that link’s holder, with a database dump,
open every sibling share of the same Memory: its K_share, and through it the password, the private label, the note
and the whole link, since the dump holds every share id in clear. K_SC is the one key no share carries
(ADR 0036
point 4). The accepted price is that every scope member can derive K_share, which gives them nothing they could
not already read. A member removed later may still hold the old links; closing or re-issuing a link is what cuts them off.
Why an uploader link carries no content key. An uploader link is the one link handed to people who are meant not
to see. A write-only role enforced only by the server would not survive a dump. So the link carries the node’s drop
public key instead of a wrap of K_node. Each guest seals under an identity key of its own, wrapped to that drop key:
one asymmetric wrap per identity, not per blob. A link plus a full dump reads only what that link’s guests uploaded
(ADR 0031 point 7). The
drop key belongs to the node rather than to the share so that every reader finds the private half where they
already look.
A rotation does not close a link; a close re-keys what is below it. A shared node key is wrapped to K_share,
not to K_SC; a re-key re-wraps the root’s new key under every open link’s unchanged K_share, so an open link
keeps showing what is added, and whoever could rebuild that K_share from its recovery copy keeps it until the link
is closed or re-issued. Closing a viewable link — a revoke, a delete, a re-issue, a bulk switch-off or a removed
member’s, or its end date passing (a server sweep, every minute by default) — marks every node below its root due in
the same transaction, and the subtree is re-keyed: with a dump, the old K_share reads what existed at the close and
nothing added after. A pause (the root trashed, a capability or requirement switched off, a moderation block)
re-keys nothing, and neither does closing an uploader link, whose K_share opens only the drop public key and its
guests’ own keys. Reopening a closed link is the curator’s act and hands it the root’s current key again
(ADR 0114;
en.sharing.public-link § Lifecycle).
A guest write must also
present a token derived from K_share (ADR 0076),
so a share id alone opens no write. That is a layer-1 control: the operator, being the server, could write anyway.