QrKeyViewModel

class QrKeyViewModel @Inject constructor(keyRepository: KeyRepository) : ViewModel

ViewModel exposing the key list and public-key export for QR encoding.

Constructors

Link copied to clipboard
@Inject
constructor(keyRepository: KeyRepository)

Properties

Link copied to clipboard
val keys: StateFlow<List<KeySummary>>

Observable list of all keys in the repository.

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
suspend fun loadPublicArmored(keyId: Long): String?

Returns the ASCII-armored public key for keyId, or null if missing.