CredentialIssuance
interface CredentialIssuance
Credential issuance capability for wallets.
Wallets can implement this to issue credentials.
Example Usage:
val wallet: Wallet = createWallet()
if (wallet is CredentialIssuance) {
val credential = wallet.issueCredential(
subjectDid = "did:key:subject",
credentialType = "PersonCredential",
claims = mapOf("name" to "Alice", "email" to "alice@example.com"),
options = proofOptions { ... }
)
}Content copied to clipboard
Functions
Link copied to clipboard
abstract suspend fun issueCredential(subjectDid: String, credentialType: String, claims: Map<String, Any>, options: ProofOptions? = null): VerifiableCredential
Issue a verifiable credential.