[][src]Function fawkes_crypto_powersoftau::utils::calculate_hash

pub fn calculate_hash(input_map: &Mmap) -> GenericArray<u8, U64>

Calculate the contribution hash from the resulting file. Original powers of tau implementation used a specially formed writer to write to the file and calculate a hash on the fly, but memory-constrained implementation now writes without a particular order, so plain recalculation at the end of the procedure is more efficient