mainloop no longer needs public key or hashes_per_check