gear_core::ids

Function hash

Source
pub fn hash(data: &[u8]) -> [u8; 32]
Expand description

Creates a unique identifier by passing given argument to blake2b hash-function.

ยงSAFETY: DO NOT ADJUST HASH FUNCTION, BECAUSE MESSAGE ID IS SENSITIVE FOR IT.