LastDeviceRecoveryKey

The offline last-device recovery key of a user: a 32-byte Ed25519 seed and its 32-byte public key. Created by ProtocolEngine.createLastDeviceRecoveryKey; the application keeps it offline (for example printed or in a password manager) in the canonical text form encode. Only publicKey is ever sent to the server. The library never persists it.

Whoever holds this key can replace the server authentication key of every registered device of the user it is registered for.

Equality compares the public key. toString never prints key bytes.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A copy of the 32-byte Ed25519 public key; the only part the server gets.

Functions

Link copied to clipboard
fun encode(): String

The canonical text form: the seed in Base64url without padding, 43 characters.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String