2.4 · Identifiers and keysWorking
DID methods, and what each one trusts
The method decides where a decentralized identifier’s document comes from, and so whom you are trusting. Some methods compute the document from the identifier itself: no registry is involved, and the key can never be changed. One fetches the document from a web address, so you trust whoever controls the domain. One adds a signed history to a web-hosted document, so changes can be checked. One is made for two parties alone, and is never published. Others write to a distributed ledger.
Compare a DID that carries its own document with one that names where to fetch it.
Three kinds of address: a fingerprint, a street address, and a land-registry entry.
Where it breaks:
- A fingerprint cannot be revoked, and neither can a key-derived identifier.
- A street address can be taken over by whoever next controls the domain.
- A peer identifier is an address only the two parties know, which no address does.
An identifier computed from a key cannot rotate that key DID-KEY “No Key Rotation”. One computed from a JSON Web Key behaves the same way DID-JWK §4.1.
A web-hosted identifier is read from the domain DID-WEB “Read (Resolve)”, which brings the domain’s own risks DID-WEB “Security and privacy considerations”. A history log can be added to it DID-WEBVH.
A peer identifier carries its keys inside it DID-PEER §3.4.3, and its first exchange must be trusted on first use DID-PEER §4.1.7.
What every method must define W3C-DID-CORE-1.0 §8.2 and what its security section must address W3C-DID-CORE-1.0 §8.3.
| Family | Where the document lives | Change the keys? | You trust |
|---|---|---|---|
| did:key, did:jwk | Computed from the identifier | Never | The key alone |
| did:peer | Inside the identifier, shared by two parties | By a message between them | The first exchange |
| did:web | A file on a web server | Edit the file | The domain’s owner, its name servers and its certificate |
| did:webvh | A signed log on a web server | A signed log entry | The keys in the log, checked from its start |
| Ledger-based | A distributed ledger | A ledger transaction | The ledger’s operators and rules |
- A web-hosted method tells the web server who resolves which identifier. A computed or peer method tells no one.
- No method makes the controller trustworthy. It decides only where the keys come from.