resolveCompliant
resolveCompliant(
did
):Promise
<ConformingDidResolutionResult
>
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
.
Parameters
• did: did:cord:3${string}
The DID to resolve.
Returns
Promise
<ConformingDidResolutionResult
>
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).