RecoveryKeyRotationStatement

class RecoveryKeyRotationStatement(val userId: UserId, val authorizer: DeviceAddress, currentPublicKey: ByteArray, newPublicKey: ByteArray, val expectedEpoch: Long, val timestamp: Instant, val nonce: RequestNonce)

The rotation a user asks for: userId's recovery key currentPublicKey, registered at recovery key epoch expectedEpoch, is to be replaced by newPublicKey, authorized by the device authorizer of the same user. timestamp (whole milliseconds) and nonce make each statement single-use.

Constructors

Link copied to clipboard
constructor(userId: UserId, authorizer: DeviceAddress, currentPublicKey: ByteArray, newPublicKey: ByteArray, expectedEpoch: Long, timestamp: Instant, nonce: RequestNonce)

Properties

Link copied to clipboard
Link copied to clipboard

A copy of the current recovery public key.

Link copied to clipboard
Link copied to clipboard

A copy of the new recovery public key.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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