hash_hex

Function hash_hex 

Source
pub fn hash_hex(data: &[u8], algo: HashAlgorithm, prefix_0x: bool) -> String
Expand description

Computes the hash of the given data using the specified algorithm and returns the result formatted as a hex string, optionally prefixed with 0x.