Module which defines hash functions. Note that Sha-256 and Sha3-256 is available in the std::hash module in the Move standard library and wrap the functions at here.
use 0x1::hash;
@param data: Arbitrary binary data to hash Hash the input bytes using Blake2b-256 and returns 32 bytes.
public fun blake2b256(data: &vector<u8>): vector<u8>
@param data: Arbitrary binary data to hash Hash the input bytes using keccak256 and returns 32 bytes.
@param data: Arbitrary binary data to hash Hash the input bytes using ripemd160 and returns 20 bytes.