pub fn to_output(&self, input: &[u8], suffix: &[u8]) -> Blake2b256 {
        let mut buf = Vec::new();
        buf.extend_from_slice(input);
        buf.extend_from_slice(self.0.compress().as_bytes());
        buf.extend_from_slice(suffix);

        Blake2b256::new(&buf)
    }
/// Get the output for this input and a known suffix
Get the output for this input and a known suffix
Get the output for this input and a known suffix
pub fn to_output(&self, input: &[u8], suffix: &[u8]) -> Blake2b256 {
        let mut buf = Vec::new();
        buf.extend_from_slice(input);
        buf.extend_from_slice(self.0.compress().as_bytes());
        buf.extend_from_slice(suffix);
        Blake2b256::new(&buf)
    }
pub fn to_output ( & self , input : & [ u8 ] , suffix : & [ u8 ] ) -> Blake2b256 { let mut buf = Vec :: new ( ) ; buf . extend_from_slice ( input ) ; buf . extend_from_slice ( self . 0 . compress ( ) . as_bytes ( ) ) ; buf . extend_from_slice ( suffix ) ; Blake2b256 :: new ( & buf ) }
Get the output for this input and a known suffix
Get the output for this input and a known suffix
&self
input
&[u8]
suffix
&[u8]
&self
input
&[u8]
suffix
&[u8]