UserDeviceChainResponse
One page of a user's device chain. Clients verify it against the user's pinned root identity before using any key in it.
Shape
object
2 fields
headobjectrequirednullableThe chain's head; null when the user has no chain.
The newest state of a user's device chain.
3 fields
stateHashstringrequired- exactly 64 characters
- lowercase hexadecimal
Hash of the head state.
userIdstringrequired- lowercase UUID v4
versionintegerrequired- 1 to 8,192
Version of the head state.
Other fields are allowed.
linkslist of objectrequired- at most 64 items
States after
afterVersion, oldest first, at most 64. Read again from the last version until it reacheshead.A signed device state with exactly the public keys it introduces.
3 fields
addedDeviceKeyslist of objectrequired- at most 32 items
Base64 public keys of the devices this state adds. Keys of devices an earlier state added are not repeated.
3 fields
deviceIdstringrequired- lowercase UUID v4
encapsulationPublicKeystringrequired- exactly 2,092 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){522}[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=$
signingPublicKeystringrequired- exactly 3,456 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){864}$
Other fields are allowed.
stateobjectrequiredOne signed state of a user's device chain: which per-device keys act for the user's root identity, and the user encryption key that wraps target.
16 fields
deviceslist of objectrequired- at most 32 items
Every active device, ordered by device id, each with its two key fingerprints, the signing time of the state that added it, and an optional sealed label.
5 fields
addedAtstringrequired- at most 24 characters
deviceIdstringrequired- lowercase UUID v4
encapsulationKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
encryptedLabelstringrequirednullable- at most 208 characters
signingKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
Other fields are allowed.
keyEnvelopesHashstringrequired- exactly 64 characters
- lowercase hexadecimal
Hash of the key envelopes that wrap this state's key epoch.
keyEpochintegerrequired- 1 to 4,096
The user encryption key's epoch. It starts at 1 and advances by one when a device is removed or the key is rotated.
prevStateHashstringrequirednullable- exactly 64 characters
- lowercase hexadecimal
Hash of the previous state; null only at version 1.
rootRecoveryKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
SHA-256 fingerprint of the root identity's ML-KEM-1024 recovery key.
rootSigningKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
SHA-256 fingerprint of the root identity's ML-DSA-87 signing key.
sealedUserKeyringHashstringrequirednullable- exactly 64 characters
- lowercase hexadecimal
Hash of the sealed keyring of earlier key epochs; null only at key epoch 1.
signaturestringrequired- exactly 6,172 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){1542}[A-Za-z0-9+/][AQgw]==$
Base64 ML-DSA-87 signature over every other field, by the key
signerKeyFingerprintnames.signedAtstringrequired- at most 24 characters
Canonical ISO-8601 UTC signing time.
signerDeviceIdstringrequirednullable- lowercase UUID v4
The signing device; null when the root identity signed.
signerKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
SHA-256 fingerprint of the signing key.
signerKindstringrequired- one of
device,root
rootfor the root identity, which signs genesis and may sign any successor;devicefor a device the previous state holds active.- one of
suitestringrequired- always
tearleads.user-device-state.ml-dsa87-ml-kem1024.v1
The state format and its algorithms.
- always
userEncryptionKeyFingerprintstringrequired- exactly 64 characters
- lowercase hexadecimal
SHA-256 fingerprint of this key epoch's ML-KEM-1024 user encryption key.
userIdstringrequired- lowercase UUID v4
versionintegerrequired- 1 to 8,192
Position in the chain, starting at 1.
Other fields are allowed.
userEncryptionPublicKeystringrequirednullable- exactly 2,092 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){522}[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=$
Base64 ML-KEM-1024 user encryption key when this state opens a key epoch; null when it keeps the previous one.
Other fields are allowed.
Other fields are allowed.