Manage Wallets
Provides the abilities to allow users to create and manage their own secure wallets for agent data
Creating a Wallet
let id: String // the unique id for the wallet
let passphrase: String // the secure passphrase used to open the wallet
let agent: SudoDIEdgeAgent // the instantiated agent
let walletConfiguration = WalletConfiguration(id: id, passphrase: passphrase)
do {
try await agent.wallet.create(walletConfiguration: walletConfiguration)
} catch {
// handle error
}val id: String // Unique wallet identifier
val passphrase: String // Secure passphrase
val agent: SudoDIEdgeAgent // Instantiated agent
launch {
try {
val walletConfig = WalletConfiguration(id, passphrase)
agent.wallet.create(walletConfig)
} catch (e: WalletModule.CreateException) {
// Handle exception
}
}Opening a Wallet
Closing a Wallet
Deleting a Wallet
Check if a Wallet Exists
Last updated