pub fn keccak512(value: &[u8]) -> Vec<u8> ⓘ
Expand description
Hashes the random sequence of bytes using keccak512.
§Examples
use near_sdk::env::keccak512;
use hex;
assert_eq!(
keccak512(b"The phrase that will be hashed"),
hex::decode("29a7df7b889a443fdfbd769adb57ef7e98e6159187b582baba778c06e8b41a75f61367257e8c525a95b3f13ddf432f115d1df128a910c8fc93221db136d92b31")
.expect("Decoding failed")
);