create

abstract suspend fun create(providerName: String, walletId: String? = null, walletDid: String? = null, holderDid: String? = null, options: WalletCreationOptions = WalletCreationOptions()): Wallet

Creates a wallet instance from a provider name.

Return

The wallet instance

Parameters

providerName

The provider name (e.g., "inMemory", "database", "file")

walletId

The wallet ID (optional, will be generated if not provided)

walletDid

The wallet DID (optional, will be generated if not provided)

holderDid

The holder DID (required for most wallet types)

options

Additional options for wallet creation (e.g., storage path, database connection, etc.)

Throws

if the provider is not found or cannot be instantiated