DidDocument

constructor(id: Did, context: List<String> = listOf("https://www.w3.org/ns/did/v1"), alsoKnownAs: List<DidOrUrl> = emptyList(), controller: List<Did> = emptyList(), verificationMethod: List<VerificationMethod> = emptyList(), authentication: List<VerificationMethodId> = emptyList(), assertionMethod: List<VerificationMethodId> = emptyList(), keyAgreement: List<VerificationMethodId> = emptyList(), capabilityInvocation: List<VerificationMethodId> = emptyList(), capabilityDelegation: List<VerificationMethodId> = emptyList(), service: List<DidService> = emptyList())

Parameters

id

The DID identifier (typed)

context

JSON-LD context(s) for the document (defaults to W3C DID Core context)

alsoKnownAs

Alternative identifiers (DID or absolute URL per spec); see DidOrUrl

controller

DIDs that control this DID (typed)

verificationMethod

List of verification methods

authentication

List of verification method references for authentication (typed)

assertionMethod

List of verification method references for assertions (typed)

keyAgreement

List of verification method references for key agreement (typed)

capabilityInvocation

List of verification method references for capability invocation (typed)

capabilityDelegation

List of verification method references for capability delegation (typed)

service

List of service endpoints