worldHash property

String get worldHash

The world hash: SHA-256 of the canonical encoding (compact form — hashing ignores indentation so hand-formatting never lies).

Implementation

String get worldHash => crypto.sha256
    .convert(utf8.encode(jsonEncode(canonical(toDocument()))))
    .toString();