DidManagement
interface DidManagement
DID management capability for wallets.
Wallets can implement this to provide DID operations.
Example Usage:
val wallet: Wallet = createWallet()
if (wallet is DidManagement) {
// Create DID
val did = wallet.createDid("key")
// Get wallet DID
println("Wallet DID: ${wallet.walletDid}")
// Resolve DID
val document = wallet.resolveDid(did)
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
abstract suspend fun createDid(method: String, options: DidCreationOptions = DidCreationOptions()): String
Create a new DID.
Link copied to clipboard
Get the primary DID for this wallet.
Link copied to clipboard
Resolve a DID to its DID Document.
Link copied to clipboard
Set the primary DID.