LastDeviceRecoveryKeyRegistration

class LastDeviceRecoveryKeyRegistration(val userId: UserId, publicKey: ByteArray, proofOfPossession: ByteArray)

A user's registration of publicKey as its last-device recovery key. proofOfPossession is the recovery key's signature over u32 length | domain | u32 length | userId | publicKey, so nobody can register a key they do not hold (a registration cannot be replaced in milestone 18).

Constructors

Link copied to clipboard
constructor(userId: UserId, publicKey: ByteArray, proofOfPossession: ByteArray)

Properties

Link copied to clipboard

A copy of the proof-of-possession signature.

Link copied to clipboard

A copy of the recovery public key.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String