Skip to main content

oid_hash

Function oid_hash 

Source
pub fn oid_hash(oid: &str) -> String
Expand description

Stable, filesystem/moq-safe identifier for a model OID.

The OID is hashed (SHA-256, truncated to OID_HASH_LEN hex chars) so the broadcast path is unguessable from the OID alone and contains no characters that are illegal in a moq path segment. Two distinct OIDs map to distinct paths with overwhelming probability.