# Functions

BuildDoc creates the DID Doc from options.
LookupDIDCommRecipientKeys gets the DIDComm recipient keys from the did doc which match the given parameters.
LookupPublicKey returns the public key with the given id from the given DID Doc.
LookupService returns the service from the given DIDDoc matching the given service type.
NewEmbeddedVerification creates a new verification method with embedded verification method.
NewReferencedVerification creates a new verification method with referenced verification method.
NewVerificationMethodFromBytes creates a new VerificationMethod based on raw public key bytes.
NewVerificationMethodFromBytesWithMultibase creates a new VerificationMethod based on raw public key bytes with multibase.
NewVerificationMethodFromJWK creates a new VerificationMethod based on JSON Web Key.
Parse parses the string according to the generic DID syntax.
ParseDIDURL parses a DID URL string into a DIDURL object.
ParseDocument creates an instance of DIDDocument by reading a JSON document from bytes.
ParseDocumentResolution parse document resolution.
WithAssertion sets the verification methods for assertion: https://w3c.github.io/did-core/#assertion.
WithAuthentication sets the verification methods for authentication: https://w3c.github.io/did-core/#authentication.
WithCreatedTime DID doc created time.
WithKeyAgreement sets the verification methods for KeyAgreement: https://w3c.github.io/did-core/#key-agreement.
WithService DID doc services.
WithUpdatedTime DID doc updated time.
WithVerificationMethod DID doc VerificationMethod.

# Constants

AssertionMethod defines verification relationship.
Authentication defines verification relationship.
CapabilityDelegation defines verification relationship.
CapabilityInvocation defines verification relationship.
ContextV1 of the DID document is the current V1 context name.
ContextV1Old of the DID document representing the old/legacy V1 context name.
KeyAgreement defines verification relationship.
VerificationRelationshipGeneral is a special case of verification relationship: when a verification method defined in Verification is not used by any Verification.

# Variables

ErrDIDDocumentNotExist error did doc not exist.
ErrKeyNotFound is returned when key is not found.
ErrProofNotFound is returned when proof is not found.

# Type aliases

Context represents JSON-LD representation-specific DID-core @context, which must be either a string, or a list containing maps and/or strings.
DID is parsed according to the generic syntax: https://w3c.github.io/did-core/#generic-did-syntax.
DIDURL holds a DID URL.
Doc DID Document definition.
DocOption provides options to build DID Doc.
DocResolution did resolution.
DocumentMetadata document metadata.
MethodMetadata method metadata.
Proof is cryptographic proof of the integrity of the DID Document.
ProtocolOperation info.
Service DID doc service.
Verification authentication verification.
VerificationMethod DID doc verification method.
VerificationRelationship defines a verification relationship between DID subject and a verification method.