Sql Delight Key Store
class SqlDelightKeyStore(managedKeyProvider: PlatformManagedKeyProvider, queries: WalletPersistenceQueries) : WalletKeyStore
Wallet key store backed by SQLDelight.
Every row persists the versioned StoredKey descriptor required to restore the key. Managed keys retain private material in the native platform store; software keys retain their encoded material in the descriptor. This is a fresh-schema store and deliberately does not read, repair, or write legacy key references.
Functions
Link copied to clipboard
Persists a versioned descriptor without exporting it through the legacy key API.
Link copied to clipboard
Generates and persists either a software or managed Crypto2 key.
Link copied to clipboard
Restores a persisted storable key with the requested usages.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun getKeyMaterial(keyId: String, usages: Set<KeyUsage>): WalletKeyStoreEntry?
Restores a persisted key as a wallet key-store entry.
Link copied to clipboard
Link copied to clipboard
Checks whether the wallet can satisfy the request using a managed key or an allowed software key.