WalletStore

interface WalletStore

Persistence for wallet identities across launches. The SDK ships InMemoryWalletStore for tests and composition; apps provide a durable implementation (SQLDelight, Room, DataStore, files) — the surface is deliberately small so that's a page of code.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun delete(partyId: String)

Removes the record for partyId; a no-op when there is none.

Link copied to clipboard
abstract suspend fun find(partyId: String): WalletRecord?

The record for partyId, or null when none is stored.

Link copied to clipboard
abstract suspend fun list(): List<WalletRecord>

All records, oldest first.

Link copied to clipboard
abstract suspend fun save(record: WalletRecord)

Inserts the record, or replaces the one already stored for the same WalletRecord.partyId.