blake2b256

Macro blake2b256 

Source
macro_rules! blake2b256 {
    ($bytes:expr) => { ... };
}
Expand description

Hash an array of bytes using BLAKE2b-256 (https://en.wikipedia.org/wiki/BLAKE_%28hash_function%29)

ยงUsage

use we_cdk::*;

#[action]
fn _constructor() {
    let hash: Binary = blake2b256!("hello");
}