pub fn mine( data: &str, difficulty: u128, max_tries: Option<u128>, hash_func_name: Option<&str>, ) -> Result<u128, Box<dyn Error>>