hash

Function hash 

Source
pub fn hash<T: Sized + Serialize>(data: &T) -> Hash
Expand description

Hashes the provided data using the SHA-256 algorithm and returns the computed hash.

§Arguments

  • data - The data to be hashed. It must implement the serde::Serialize trait.

§Returns

The computed hash as a Hash type.