Skip to main content

pow_compute_data_hash

Function pow_compute_data_hash 

Source
pub fn pow_compute_data_hash(datas: &[&[u8]]) -> Hash
Expand description

Pre-hash all input data into a single 32-byte Hash.

Call this once before the iteration loop; pass the result to pow_measure_from_data_hash (and to PowGenerator::generate*) so that workers only receive 32 bytes instead of the full raw data.