Expand description
Device-cohort hash — the advisory session-grouping aid (SSoT: Authentication — Device Cohorts).
One deterministic hash groups a physical device’s sessions across app
reinstalls (reset-stability is platform-limited and documented honestly in
the owner doc). The construction is domain-separated canonical CBOR — never
naive concatenation — and folds the user_id in so the same device under
two accounts yields unlinkable hashes.
Advisory-only invariant: the value is client-asserted and unverifiable; no authorization or capability decision may ever read it.
Enums§
- Platform
Tag - Closed platform tag (wire value is the lowercase name; a new platform is an additive protocol change).
Constants§
- DEVICE_
COHORT_ V1 - Domain-separation label (versioned; a construction change bumps the suffix).
Functions§
- cohort_
hash - The cohort hash:
SHA-256( canonical-CBOR([ "capsule-device-cohort/v1", user_id, platform_tag, primary_id ]) ).