hash

Function hash 

Source
pub fn hash(data: &Vec<u8>) -> Result<String>
Expand description

Hashes the data using SHA2-256.

ยงErrors

  • If the data cannot be hashed.