Function gear_core::ids::hash

source ·
pub fn hash(argument: &[u8]) -> Hash
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.