Did Document
DidDocument represents a set of data describing the DID subject including mechanisms such as:
cryptographic public keys - used to authenticate itself and prove association with the DID
services - means of communicating or interacting with the DID subject or associated entities via one or more service endpoints. Examples include discovery services, agent services, social networking services, file storage services, and verifiable credential repository services. A DID Document can be retrieved by resolving a DID URI. DID Core spec: https://www.w3.org/TR/did-core/#core-properties
Constructors
Properties
AlsoKnownAs can contain multiple identifiers for different purposes, or at different times for the same DID subject. The assertion that two or more DIDs (or other types of URI) refer to the same DID subject can be made using the alsoKnownAs property.
used to specify how the DID subject is expected to express claims, such as for the purposes of issuing a Verifiable Credential.
specifies how the DID subject is expected to be authenticated, for purposes such as logging into a website or engaging in any sort of challenge-response protocol.
specifies a mechanism used by the DID subject to delegate a cryptographic capability to another party, such as delegating the authority to access a specific HTTP API.
specifies a verification method used by the DID subject to invoke a cryptographic capability, such as the authorization to update the DID Document.
defines an entity that is authorized to make changes to a DID document. The process of authorizing a DID controller is defined by the DID method. It can be a string or a list of strings.
specifies how an entity can generate encryption material to transmit confidential information intended for the DID subject, such as for establishing a secure communication channel.
a list of cryptographic public keys, which can be used to authenticate or authorize interactions with the DID subject or associated parties.
Functions
Finds the first available assertion method from the DidDocument. When assertionMethodId is null, the function will return the first available assertion method.
GetAbsoluteResourceID returns a fully qualified ID for a document resource (e.g. service, verification method) Document Resource IDs are allowed to be relative DID URLs as a means to reduce storage size of DID Documents. More info here: https://www.w3.org/TR/did-core/#relative-did-urls
Select verification method takes a selector that can be used to select a specific verification method from the DID Document. If a selector is not provided, the first verification method is returned