Function essential_hash::serialize

source ·
pub fn serialize<T: Serialize>(t: &T) -> Vec<u8> 
Expand description

Serialize data for hashing using postcard.

This serialization format is standardized across essential crates. Attempting to hash data serialized with any other serialization implementation will almost certainly result in a different hash.