Type alias RepresentationResolutionResult<ContentType>

RepresentationResolutionResult<ContentType>: Pick<ResolutionResult, "didDocumentMetadata"> & {
    didDocumentStream?: Uint8Array;
    didResolutionMetadata: RepresentationResolutionMetadata<ContentType>;
}

Type Parameters

  • ContentType extends string = string

Type declaration

  • Optional didDocumentStream?: Uint8Array

    If the resolution is successful, and if the resolveRepresentation function was called, this MUST be a byte stream of the resolved DID document in one of the conformant representations. The byte stream might then be parsed by the caller of the resolveRepresentation function into a data model, which can in turn be validated and processed. If the resolution is unsuccessful, this value MUST be an empty stream.

  • didResolutionMetadata: RepresentationResolutionMetadata<ContentType>