replace

abstract suspend fun replace(address: DeviceAddress, expectedIdentityKey: ByteArray, newIdentityKey: ByteArray)

Replaces the pin of address with newIdentityKey as VerificationState.UNVERIFIED, but only if expectedIdentityKey is pinned (compare-and-set). Throws IllegalStateException and changes nothing if there is no pin or another key is pinned, and IllegalArgumentException if both keys are equal. Only for an identity change the application explicitly accepted.