Companion

object Companion

Properties

Link copied to clipboard
const val GROUP_COUNT: Int = 12
Link copied to clipboard
const val GROUP_DIGITS: Int = 5

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.