All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.folivo.trixnity.client.crypto.ClientSignServiceStore.kt Maven / Gradle / Ivy

There is a newer version: 4.7.1
Show newest version
package net.folivo.trixnity.client.crypto

import net.folivo.trixnity.client.store.AccountStore
import net.folivo.trixnity.client.store.OlmCryptoStore
import net.folivo.trixnity.crypto.sign.SignServiceStore

class ClientSignServiceStore(private val olmCryptoStore: OlmCryptoStore, private val accountStore: AccountStore) :
    SignServiceStore {
    override suspend fun getOlmAccount(): String = checkNotNull(olmCryptoStore.getOlmAccount())
    override suspend fun getOlmPickleKey(): String = checkNotNull(accountStore.getAccount()?.olmPickleKey)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy