sha256

Macro sha256 

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

Hash an array of bytes using SHA-256 (https://en.wikipedia.org/wiki/SHA-2)

ยงUsage

use we_cdk::*;

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