pub fn compute_cohort_hash(
reader: &dyn PrimaryIdentifierReader,
user_id: Uuid,
) -> Result<String, IdentifierError>Expand description
Compute the advisory cohort hash (lowercase-hex SHA-256) for an account on this
device: read the platform’s primary identifier and fold it with user_id through
capsule_core::cohort::cohort_hash.
The result is exactly what crate::auth::AuthClient::with_cohort_hash wants.
Returns IdentifierError when no identifier is available — the caller then emits
nothing, which is legal.