Future<bool> validate(int nonce) async { final calculatedResult = await _calculate(nonce); return calculatedResult >= difficulty; }