Skip to main content

Crate sourse_hash

Crate sourse_hash 

Source
Expand description

Domain-separated BLAKE3 hashing for Sourse.

This crate provides deterministic, domain-separated hashing so that the same bytes hash differently across contexts (blob, manifest, commit). It contains no storage or graph logic.

Structs§

Hash256
A 256-bit hash value.
Hasher
A Sourse hasher wrapping BLAKE3 with domain separation.

Enums§

HashDomain
Domain separation labels for different hash contexts.

Functions§

hash_blob
Hashes blob content with domain separation.
hash_commit
Hashes commit content with domain separation.
hash_manifest_node
Hashes manifest node content with domain separation.
hash_to_object_id
Converts a Hash256 to an ObjectId.