Companion
object Companion
Functions
Link copied to clipboard
fun derive(localAddress: DeviceAddress, localIdentityKey: PublicIdentityKey, remoteAddress: DeviceAddress, remoteIdentityKey: PublicIdentityKey): SafetyNumber
The safety number of localAddress with localIdentityKey and remoteAddress with remoteIdentityKey. Swapping the two sides gives the same result. Throws IllegalArgumentException for two equal addresses or an address that is not valid Unicode.