Companion
object Companion
Functions
Link copied to clipboard
The challenge wire holds, or null when wire is not a version-1 kuilt/challenge layout followed by 64 bytes. Checks the layout and every field's form — the key's syntax, well-formed UTF-8, both nonces NONCE_SIZE bytes — but not the signature: that is isSignedByHost. Never throws.
Link copied to clipboard
suspend fun sign(host: DeviceKey, roomId: String, hostPeerId: String, joinerPeerId: String, joinerNonce: ByteArray, hostNonce: ByteArray): Challenge
The challenge host signs for the joiner joinerPeerId, answering the joinerNonce it sent with a fresh hostNonce. Its hostKey is host's DeviceKey.id.