pub fn digest_of(data: &[u8]) -> Self {
        let mut hash = [0u8; Self::LENGTH];
        let mut hasher = Blake2s::new();
        hasher.update(data);
        hash.copy_from_slice(hasher.finalize().as_ref());
        Self { hash }
    }
/// Create a new HashValue by hashing the `data`
Create a new HashValue by hashing the `data`
Create a new HashValue by hashing the ` data `
pub fn digest_of(data: &[u8]) -> Self {
        let mut hash = [0u8; Self::LENGTH];
        let mut hasher = Blake2s::new();
        hasher.update(data);
        hash.copy_from_slice(hasher.finalize().as_ref());
        Self { hash }
    }
pub fn digest_of ( data : & [ u8 ] ) -> Self { let mut hash = [ 0u8 ; Self :: LENGTH ] ; let mut hasher = Blake2s :: new ( ) ; hasher . update ( data ) ; hash . copy_from_slice ( hasher . finalize ( ) . as_ref ( ) ) ; Self { hash } }
Create a new HashValue by hashing the `data`
Create a new HashValue by hashing the ` data `
data
&[u8]