corda / net.corda.core.crypto / serializedHash


fun <T : Any> serializedHash(x: T): SecureHash

Serialise the object and return the hash of the serialized bytes. Note that the resulting hash may not be deterministic across platform versions: serialization can produce different values if any of the types being serialized have changed, or if the version of serialization specified by the context changes.