Skip to main content

pow_measure_from_data_hash

Function pow_measure_from_data_hash 

Source
pub fn pow_measure_from_data_hash(
    data_hash: &Hash,
    salt: &Salt,
) -> Result<(Pow, Hash)>
Expand description

Core PoW measurement given an already-pre-hashed data blob.

Computes hash(data_hash ++ salt) as the starting point, then runs the 5-round chained-hash algorithm. Use pow_compute_data_hash to produce data_hash from raw inputs.