WalletOrganizationBuilder
Wallet Organization Builder DSL.
Provides a fluent API for organizing credentials in wallets without manual type checks. Automatically handles capability detection and provides helpful error messages.
Example Usage:
wallet.organize {
collection("Education", "Academic degrees") {
add(bachelorId, masterId)
tag(bachelorId, "education", "degree", "bachelor")
tag(masterId, "education", "degree", "master")
}
collection("Work Experience") {
add(job1Id, job2Id)
tag(job1Id, "work", "employment", "completed")
tag(job2Id, "work", "employment", "current")
}
}Content copied to clipboard
Types
Functions
Link copied to clipboard
fun collection(name: String, description: String? = null, block: WalletOrganizationBuilder.CollectionBuilder.() -> Unit)
Create a collection and configure it.
Link copied to clipboard
Execute all organization operations.
Link copied to clipboard
Add metadata to a credential.