pub fn with(tag: impl AsRef<[u8]>) -> Self {
        let mut engine = sha256::Hash::engine();
        let tag_hash = sha256::Hash::hash(tag.as_ref());
        engine.input(&tag_hash[..]);
        engine.input(&tag_hash[..]);
        Self::from_inner(engine.midstate().into_inner().into())
    }
/// Constructs tagged hash midstate for a given tag data
Constructs tagged hash midstate for a given tag data
Constructs tagged hash midstate for a given tag data
pub fn with(tag: impl AsRef<[u8]>) -> Self {
        let mut engine = sha256::Hash::engine();
        let tag_hash = sha256::Hash::hash(tag.as_ref());
        engine.input(&tag_hash[..]);
        engine.input(&tag_hash[..]);
        Self::from_inner(engine.midstate().into_inner().into())
    }
pub fn with ( tag : impl AsRef < [ u8 ] > ) -> Self { let mut engine = sha256 :: Hash :: engine ( ) ; let tag_hash = sha256 :: Hash :: hash ( tag . as_ref ( ) ) ; engine . input ( & tag_hash [ .. ] ) ; engine . input ( & tag_hash [ .. ] ) ; Self :: from_inner ( engine . midstate ( ) . into_inner ( ) . into ( ) ) }
Constructs tagged hash midstate for a given tag data
Constructs tagged hash midstate for a given tag data
tag
impl AsRef<[u8]>
tag
impl AsRef<[u8]>