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)