Function nanopow_rs::generate_work [] [src]

pub fn generate_work(input_hash: &str, max_iters: Option<u64>) -> Option<String>

Takes an input block hash or public key in the form of a 32-character hexadecimal encoded string and returns an 16-character hex-encoded string of the generated work. Runs a maximum of max_iters distributed across all threads (one thread runs max_iters/numcpus iters) and returns None if no work was found. If max_iters is None, runs until valid work is found.