Function resolveCompliant

  • Implementation of resolve compliant with W3C DID specifications (https://www.w3.org/TR/did-core/#did-resolution). As opposed to resolve, which takes a more pragmatic approach, the didDocument property contains a fully compliant DID document abstract data model. Additionally, this function returns an id-only DID document in the case where a DID has been deleted or upgraded. If a DID is invalid or has not been registered, this is indicated by the error property on the didResolutionMetadata.

    Returns

    An object with the properties didDocument (a spec-conforming DID document or undefined), didDocumentMetadata (equivalent to metadata returned by resolve), as well as didResolutionMetadata (indicating an error if any).

    Parameters

    • did: DidUri

      The DID to resolve.

    Returns Promise<ConformingDidResolutionResult>