toHash method

ScriptHash toHash()

Generates the hash of the native script.

Implementation

ScriptHash toHash() {
  return ScriptHash(QuickCrypto.blake2b224Hash([0, ...serialize()]));
}