pub fn calc_new_nonce_hash(&self, new_nonce: &[u8; 32], number: u8) -> [u8; 16] {
        let data = {
            let mut buffer = Vec::with_capacity(new_nonce.len() + 1 + self.aux_hash.len());
            buffer.extend(new_nonce);
            buffer.push(number);
            buffer.extend(&self.aux_hash);
            buffer
        };

        let mut result = [0u8; 16];
        result.copy_from_slice(&Sha1::from(&data).digest().bytes()[4..]);
        result
    }
/// Calculates the new nonce hash based on the current attributes.
Calculates the new nonce hash based on the current attributes.
Calculates the new nonce hash based on the current attributes .
pub fn calc_new_nonce_hash(&self, new_nonce: &[u8; 32], number: u8) -> [u8; 16] {
        let data = {
            let mut buffer = Vec::with_capacity(new_nonce.len() + 1 + self.aux_hash.len());
            buffer.extend(new_nonce);
            buffer.push(number);
            buffer.extend(&self.aux_hash);
            buffer
        };
        let mut result = [0u8; 16];
        result.copy_from_slice(&Sha1::from(&data).digest().bytes()[4..]);
        result
    }
pub fn calc_new_nonce_hash ( & self , new_nonce : & [ u8 ; 32 ] , number : u8 ) -> [ u8 ; 16 ] { let data = { let mut buffer = Vec :: with_capacity ( new_nonce . len ( ) + 1 + self . aux_hash . len ( ) ) ; buffer . extend ( new_nonce ) ; buffer . push ( number ) ; buffer . extend ( & self . aux_hash ) ; buffer } ; let mut result = [ 0u8 ; 16 ] ; result . copy_from_slice ( & Sha1 :: from ( & data ) . digest ( ) . bytes ( ) [ 4 .. ] ) ; result }
Calculates the new nonce hash based on the current attributes.
Calculates the new nonce hash based on the current attributes .
&self
new_nonce
&[u8; 32]
number
u8
&self
new_nonce
&[u8; 32]
number
u8