bool isValidSignature(String hash, String jsonData) { if (hash.isEmpty || jsonData.isEmpty) return false; return hash == _createCheckSum(jsonData); }