fun ContractState.hash(): SecureHash
Returns the SHA-256 hash of the serialised contents of this state (not cached)