pub fn validate_all(&self, nonce: &[u8], received_data: &VecDeque<u8>, key: u64) -> bool {
        let mut data = self.create_proof_data(nonce);
        if data != *received_data {
            return false;
        }
        for _ in 0..key {
            data.push_front(0u8);
        }
        self.check_hash(&data) >= self.difficulty
    }
/// Validate the proof data and key (this is the number of zeros to be pushed onto the data).
Validate the proof data and key (this is the number of zeros to be pushed onto the data).
Validate the proof data and key ( this is the number of zeros to be pushed onto the data ) .
pub fn validate_all(&self, nonce: &[u8], received_data: &VecDeque<u8>, key: u64) -> bool {
        let mut data = self.create_proof_data(nonce);
        if data != *received_data {
            return false;
        }
        for _ in 0..key {
            data.push_front(0u8);
        }
        self.check_hash(&data) >= self.difficulty
    }
pub fn validate_all ( & self , nonce : & [ u8 ] , received_data : & VecDeque < u8 > , key : u64 ) -> bool { let mut data = self . create_proof_data ( nonce ) ; if data != * received_data { return false ; } for _ in 0 .. key { data . push_front ( 0u8 ) ; } self . check_hash ( & data ) >= self . difficulty }
Validate the proof data and key (this is the number of zeros to be pushed onto the data).
Validate the proof data and key ( this is the number of zeros to be pushed onto the data ) .
&self
nonce
&[u8]
received_data
&VecDeque<u8>
key
u64
&self
nonce
&[u8]
received_data
&VecDeque<u8>
key
u64