Skip to main content

content_hash_value

Function content_hash_value 

Source
pub fn content_hash_value(
    value: &ValueWord,
    schemas: &TypeSchemaRegistry,
) -> HashDigest
Expand description

Compute a content hash for a ValueWord value.

Provides structural hashing that is deterministic across runs. For TypedObjects, fields are hashed in slot order. For arrays, each element is hashed. Primitives are hashed by their binary representation.