pub fn hash<B>(data: B) -> Bytes32
    where
        B: AsRef<[u8]>,
    {
        let mut hasher = Sha256::new();

        hasher.update(data);

        <[u8; Bytes32::LEN]>::from(hasher.finalize()).into()
    }
/// Hash the provided data, returning its digest
Hash the provided data, returning its digest
Hash the provided data returning its digest
pub fn hash<B>(data: B) -> Bytes32
    where
        B: AsRef<[u8]>,
    {
        let mut hasher = Sha256::new();
        hasher.update(data);
        <[u8; Bytes32::LEN]>::from(hasher.finalize()).into()
    }
pub fn hash < B > ( data : B ) -> Bytes32 where B : AsRef < [ u8 ] > , { let mut hasher = Sha256 :: new ( ) ; hasher . update ( data ) ; < [ u8 ; Bytes32 :: LEN ] > :: from ( hasher . finalize ( ) ) . into ( ) }
Hash the provided data, returning its digest
Hash the provided data returning its digest
data
B