Function keccak256

Source
pub fn keccak256(value: &[u8]) -> Vec<u8> 
Expand description

Hashes the random sequence of bytes using keccak256.

§Examples

use near_sdk::env::keccak256;
use hex;

assert_eq!(
    keccak256(b"The phrase that will be hashed"),
    hex::decode("b244af9dd4aada2eda59130bbcff112f29b427d924b654aaeb5a0384fa9afed4")
        .expect("Decoding failed")
);