Function hdk::hash::hash_keccak256

source ·
pub fn hash_keccak256(input: Vec<u8>) -> Result<Vec<u8>, WasmError>
Expand description

Hash arbitrary bytes using keccak256. This is the same algorithm used by ethereum and other EVM compatible blockchains. It is essentially the same as sha3 256 but with a minor difference in configuration that is enough to generate different hash outputs.