searchResultHashRaw static method
Encodes a search result as list of bytes.
Implementation
static List<int> searchResultHashRaw(List<Node>? result1) {
result1 ??= <Node>[];
SortedList<Node> sl1 = SortedList((a, b) => a.path.compareTo(b.path));
String ret = '';
for (Node n in sl1) {
ret += n.toString();
}
return sha256.convert(utf8.encode(ret)).bytes;
}