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).
Implementation of
resolve
compliant with W3C DID specifications (https://www.w3.org/TR/did-core/#did-resolution). As opposed toresolve
, which takes a more pragmatic approach, thedidDocument
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 theerror
property on thedidResolutionMetadata
.Returns
An object with the properties
didDocument
(a spec-conforming DID document orundefined
),didDocumentMetadata
(equivalent tometadata
returned by resolve), as well asdidResolutionMetadata
(indicating anerror
if any).