diff --git a/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt b/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt index d4cda1c338..6fb5a03f20 100644 --- a/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt +++ b/core/src/main/kotlin/com/r3corda/core/serialization/Kryo.kt @@ -262,7 +262,7 @@ object Ed25519PrivateKeySerializer : Serializer() { val ed25519Curve = EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512) override fun write(kryo: Kryo, output: Output, obj: EdDSAPrivateKey) { - check(obj.params.equals(ed25519Curve)) + check(obj.params == ed25519Curve) output.writeInt(obj.seed.size, true) output.writeBytes(obj.seed) } @@ -280,7 +280,7 @@ object Ed25519PublicKeySerializer : Serializer() { val ed25519Curve = EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512) override fun write(kryo: Kryo, output: Output, obj: EdDSAPublicKey) { - check(obj.params.equals(ed25519Curve)) + check(obj.params == ed25519Curve) output.writeInt(obj.abyte.size, true) output.writeBytes(obj.abyte) }