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 / pow_generate_with_iteration_limit so that workers only receive 32 bytes instead of the full raw data.