SqlDelightDidStore

class SqlDelightDidStore(queries: WalletPersistenceQueries) : WalletDidStore

SQLDelight-backed implementation of WalletDidStore for mobile wallets.

Parameters

queries

SQLDelight queries for wallet persistence tables.

Constructors

Link copied to clipboard
constructor(queries: WalletPersistenceQueries)

Functions

Link copied to clipboard
open suspend override fun addDid(entry: WalletDidEntry)

Stores or replaces a DID document.

Link copied to clipboard
open suspend fun getDefaultDid(): String?
Link copied to clipboard
open suspend override fun getDid(did: String): WalletDidEntry?

Loads a DID document by DID.

Link copied to clipboard
open suspend override fun listDids(): Flow<WalletDidEntry>

Emits all DID documents stored in the mobile database.

Link copied to clipboard
open suspend fun listDidsAsList(): List<WalletDidEntry>
Link copied to clipboard
open suspend override fun removeDid(did: String): Boolean

Removes a DID document by DID.