2.3 · Identifiers and keysWorking
Resolving a DID: three things come back
Resolving a decentralized identifier (DID) returns three things: metadata about the resolution itself, such as an error; the DID document; and metadata about the document, such as when it was created and updated, its version, and whether it has been deactivated. Dereferencing takes a DID with a path or a fragment added, and returns one thing: a particular key or service. A DID can also be resolved as it was at an earlier version, which is how an old signature is checked against the key that was valid when it was made.
Resolve did:key, did:jwk and did:peer from their own examples in your browser, and see the three things resolution returns.
A look-up in the internet’s domain name system.
Where it breaks:
- The answer carries a history and a deactivation flag, and the verifier must check both.
- For some methods there is no look-up at all: the document is computed from the identifier.
- How far the answer can be trusted depends on the method and on the resolver you chose.
Resolution returns resolution metadata, the document and document metadata W3C-DID-CORE-1.0 §7.1; dereferencing narrows a DID URL to one resource W3C-DID-CORE-1.0 §7.2; the metadata’s fields are defined in one place W3C-DID-CORE-1.0 §7.3.
An earlier version is asked for with a parameter W3C-DID-CORE-1.0 §3.2.1. Which resolver you trust is itself a security decision W3C-DID-CORE-1.0 §9.1.
- Whoever runs the resolver, and for a web-hosted method whoever runs the web server, sees which identifiers you resolve and when.
- A successful resolution is not a trusted one: a deactivated identifier still resolves, and says so in the metadata you must read.
- W3C-DID-CORE-1.0 Decentralized Identifiers (DIDs) v1.0