Skip to main content

cohort_hash

Function cohort_hash 

Source
pub fn cohort_hash(
    user_id: Uuid,
    platform: PlatformTag,
    primary_id: &str,
) -> Hash32
Expand description

The cohort hash: SHA-256( canonical-CBOR([ "capsule-device-cohort/v1", user_id, platform_tag, primary_id ]) ).

primary_id is the platform’s single primary identifier per the owner doc’s table (Keychain seed / SSAID / IOPlatformUUID / MachineGuid / machine-id) — exactly one input per platform, chosen for stability, never a concatenated fingerprint.