generateHash function
Implementation
String generateHash(dynamic message) {
final jsonMessage = jsonEncode(message);
final bytes = utf8.encode(jsonMessage);
final hash = crypto.sha256.convert(bytes);
return hash.toString();
}
String generateHash(dynamic message) {
final jsonMessage = jsonEncode(message);
final bytes = utf8.encode(jsonMessage);
final hash = crypto.sha256.convert(bytes);
return hash.toString();
}