Skip to main content

schema_version_prefix

Function schema_version_prefix 

Source
pub fn schema_version_prefix(algo: HashAlgo) -> [u8; 2]
Expand description

The two-byte schema-version prefix for algo.

Layout: [CHAPTER_REVISION, hash_function_id(algo)]. Always fed into the hasher first, ahead of every other component.