/// Calculate Keccak-256 crypto hash
Calculate Keccak-256 crypto hash
Calculate Keccak - 256 crypto hash
pub fn keccak256(data: &[u8]) -> [u8; KECCAK256_BYTES] {
    let mut sha3 = Sha3::new(Sha3Mode::Keccak256);
    sha3.input(data);
    let mut hash = [0u8; KECCAK256_BYTES];
    sha3.result(&mut hash);
    hash
}
pub fn keccak256 ( data : & [ u8 ] ) -> [ u8 ; KECCAK256_BYTES ] { let mut sha3 = Sha3 :: new ( Sha3Mode :: Keccak256 ) ; sha3 . input ( data ) ; let mut hash = [ 0u8 ; KECCAK256_BYTES ] ; sha3 . result ( & mut hash ) ; hash }
Calculate Keccak-256 crypto hash
Calculate Keccak - 256 crypto hash
data
&[u8]