KeyManagement
interface KeyManagement
Key management capability for wallets.
Wallets can implement this to provide key operations.
Example Usage:
val wallet: Wallet = createWallet()
if (wallet is KeyManagement) {
// Generate key
val keyId = wallet.generateKey("Ed25519")
// Get keys
val keys = wallet.getKeys()
// Sign data
val signature = wallet.sign(keyId, data)
}Content copied to clipboard