Function hash_data

Source
pub fn hash_data(data: &[u8]) -> Vec<u8> 
Expand description

Hashes input data using SHA-256.

§Arguments

  • data - The data to hash.

§Returns

A vector of bytes representing the SHA-256 hash of the input data.