/// Constructs tagged hash from byte slice. If slice length is not equal to
/// 32 bytes, fails with [`Error::InvalidLength`] (this is just a
/// wrapper for [`sha256t::Hash::from_slice`]).
Constructs tagged hash from byte slice.
Constructs tagged hash from byte slice .
fn from_slice(slice: &[u8]) -> Result<Self, Error>
    where
        Self: Sized,
    {
        sha256t::Hash::from_slice(slice).map(Self::from_inner)
    }
fn from_slice ( slice : & [ u8 ] ) -> Result < Self , Error > where Self : Sized , { sha256t :: Hash :: from_slice ( slice ) . map ( Self :: from_inner ) }
Constructs tagged hash from byte slice.
Constructs tagged hash from byte slice .
slice
&[u8]