Uint8List hashOfMap(Map map) { final hashes = <Uint8List>[]; for (final entry in map.entries) { hashes.add(hashKeyValue(entry.key, entry.value)); } return sha256Chunks(u8aSorted(hashes)); }