Function exonum::crypto::hash
[−]
[src]
pub fn hash(data: &[u8]) -> Hash
Calculates SHA256
hash of bytes slice.
Examples
use exonum::crypto; let data = [1, 2, 3]; let hash = crypto::hash(&data);