Type alias ResolutionResult

ResolutionResult: {
    didDocument?: DidDocument;
    didDocumentMetadata: ResolutionDocumentMetadata;
    didResolutionMetadata: ResolutionMetadata;
}

Type declaration

  • Optional didDocument?: DidDocument

    If the resolution is successful, and if the resolve function was called, this MUST be a DID document abstract data model (a map) as described in 4. Data Model that is capable of being transformed into a conforming DID Document (representation), using the production rules specified by the representation. The value of id in the resolved DID document MUST match the DID that was resolved. If the resolution is unsuccessful, this value MUST be empty.

  • didDocumentMetadata: ResolutionDocumentMetadata

    If the resolution is successful, this MUST be a metadata structure. This structure contains metadata about the DID document contained in the didDocument property. This metadata typically does not change between invocations of the resolve and resolveRepresentation functions unless the DID document changes, as it represents metadata about the DID document. If the resolution is unsuccessful, this output MUST be an empty metadata structure. The possible properties within this structure and their possible values SHOULD be registered in the DID Specification Registries.

  • didResolutionMetadata: ResolutionMetadata

    A metadata structure consisting of values relating to the results of the DID resolution process which typically changes between invocations of the resolve and resolveRepresentation functions, as it represents data about the resolution process itself. This structure is REQUIRED, and in the case of an error in the resolution process, this MUST NOT be empty. If resolveRepresentation was called, this structure MUST contain a contentType property containing the Media Type of the representation found in the didDocumentStream. If the resolution is not successful, this structure MUST contain an error property describing the error. The possible properties within this structure and their possible values are registered in the DID Specification Registries.