KeyService

interface KeyService

Inheritors

Types

Link copied to clipboard
data class BootstrapCrossSigning(val recoveryKey: String, val result: Result<UIA<Unit>>)

Properties

Link copied to clipboard
abstract val bootstrapRunning: StateFlow<Boolean>

Functions

Link copied to clipboard
abstract suspend fun bootstrapCrossSigning(recoveryKey: ByteArray, secretKeyEventContent: SecretKeyEventContent): KeyService.BootstrapCrossSigning

This allows you to bootstrap cross signing. Be aware, that this could override an existing cross signing setup of the account. Be aware, that this also creates a new key backup, which could replace an existing key backup.

Link copied to clipboard

This allows you to bootstrap cross signing. Be aware, that this could override an existing cross signing setup of the account. Be aware, that this also creates a new key backup, which could replace an existing key backup.

Link copied to clipboard
abstract fun getCrossSigningKeys(userId: UserId): Flow<List<CrossSigningKeys>?>
Link copied to clipboard
abstract fun getDeviceKeys(userId: UserId): Flow<List<DeviceKeys>?>
Link copied to clipboard
abstract fun getTrustLevel(userId: UserId): Flow<UserTrustLevel>
abstract fun getTrustLevel(roomId: RoomId, eventId: EventId): Flow<DeviceTrustLevel?>
abstract fun getTrustLevel(userId: UserId, deviceId: String): Flow<DeviceTrustLevel>