computeVersionedHash method

Uint8List computeVersionedHash()

Implementation

Uint8List computeVersionedHash() {
  if (versionedHash != null) return versionedHash!;
  final c = computeCommitment();
  final hash = sha256(c);
  hash[0] = 0x01;
  return hash;
}