Skip to main content

hash_structured

Function hash_structured 

Source
pub fn hash_structured<T: Serialize>(value: &T) -> Result<Hash256>
Expand description

Serialize value to CBOR, then compute the blake3 hash.

§Errors

Returns ExoError::SerializationError if CBOR encoding fails.