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