Module 0x2::hash
Module which defines hash functions. Note that Sha-256 and Sha3-256 is available in the std::hash module in the standard library.
Function blake2b256
@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>
Implementation
native public fun blake2b256(data: &vector<u8>): vector<u8>;
Function keccak256
@param data: Arbitrary binary data to hash Hash the input bytes using keccak256 and returns 32 bytes.
public fun keccak256(data: &vector<u8>): vector<u8>