user_device_chain_checkpoints Client SQLite table
Durable anti-rollback checkpoints for verified peer (and self) user device chains (#3580). Keyed by the full trusted root identity (identityTrustDomain, userId, rootSigningKeyFingerprint, rootRecoveryKeyFingerprint) so an unpinned or substituted candidate during staged admission can never poison the honest identity's checkpoint, while preventing a dishonest server from rolling back or equivocating on a verified chain across restarts or LRU evictions.
Declared in packages/client-sdk/src/data/sqlite/schema/trustedUserIdentityPinSchema.ts
Columns
identity_trust_domaintext- not null
API authority of the chain's user: its canonical URL (origin and path, no trailing slash).
user_idtext- not null
Id of the user whose device chain was verified.
root_signing_key_fingerprinttext- not null
Root signing key of the chain: the trusted identity's
signingKeyFingerprint, hex SHA-256.root_recovery_key_fingerprinttext- not null
Root recovery key of the chain: the trusted identity's
encapsulationKeyFingerprint, hex SHA-256.versioninteger- not null
Highest chain version verified. It never decreases, and a chain served below it is refused as a rollback.
state_hashtext- not null
Hex SHA-256 state hash of the chain at
version. A different state at that version is refused as equivocation.updated_attext- not null
ISO-8601 time the checkpoint was last written.
Keys and constraints
- Primary key
(identity_trust_domain, user_id, root_signing_key_fingerprint, root_recovery_key_fingerprint)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "user_device_chain_checkpoints" (
"identity_trust_domain" TEXT NOT NULL,
"user_id" TEXT NOT NULL,
"root_signing_key_fingerprint" TEXT NOT NULL,
"root_recovery_key_fingerprint" TEXT NOT NULL,
"version" INTEGER NOT NULL,
"state_hash" TEXT NOT NULL,
"updated_at" TEXT NOT NULL,
PRIMARY KEY ("identity_trust_domain", "user_id", "root_signing_key_fingerprint", "root_recovery_key_fingerprint")
);