A decentralized identifier (DID) is a globally unique identifier that its controller creates and manages without a central registration authority, and that resolves to a machine-readable DID document listing public keys and service endpoints. In digital identity, DIDs give people, organizations and devices a persistent, cryptographically verifiable reference that does not depend on an email provider, a social network or a government database staying available.
The data model and syntax are defined in the W3C Decentralized Identifiers (DIDs) v1.0 Recommendation. From a privacy perspective, a DID matters because it separates proof of control from the platform that hosts an account, which allows verification without a third party observing every transaction.
How a decentralized identifier is structured and resolved
Every DID follows the same three-part syntax: the literal scheme did, a method name, and a method-specific identifier, for example did:example:123456789abcdefghi. The method name tells software which rules to apply when it creates, reads, updates or deactivates the identifier.
DID resolution is the process of turning the identifier string into its DID document. A DID resolver reads the method name, applies the method’s logic (querying a ledger, fetching a web file or decoding the string itself) and returns the document together with resolution metadata. The document then lets a verifier check signatures made by the controller.
The following table lists the main components that appear in a resolved DID document.
| Element | Purpose | Typical content |
|---|---|---|
| id | States the DID being described | The full DID string |
| controller | Names who may change the document | One or more DIDs |
| verificationMethod | Publishes keys or other proof material | Ed25519 or P-256 public keys |
| authentication | Lists keys usable to log in | References to verification methods |
| assertionMethod | Lists keys for signing credentials | Issuer signing keys |
| service | Points to related endpoints | Messaging or credential exchange URLs |
DID methods and their trust anchors
A DID method is a specification that defines where the DID document lives and how changes are authorized. Well over one hundred methods have been registered, but only a handful see production use, and they differ sharply in decentralization, cost and privacy properties.
The comparison below covers methods commonly encountered in identity wallets and credential ecosystems.
| Method | Where the document lives | Update support | Main trade-off |
|---|---|---|---|
| did:key | Derived from the public key itself | None | Simple but cannot rotate keys |
| did:web | HTTPS file on a domain | Edit the hosted file | Relies on DNS and web hosting |
| did:peer | Exchanged directly between parties | Limited, pairwise | Not publicly resolvable by design |
| did:ion | Sidetree layer anchored to Bitcoin | Signed operations | Complex infrastructure |
| did:ebsi | European Blockchain Services Infrastructure | Governed registry | Permissioned for legal entities |
| did:jwk | Encoded JSON Web Key | None | Same limits as did:key |
The choice of method sets the real trust anchor. A did:web identifier is only as trustworthy as the domain owner and its TLS certificate, while ledger-based methods shift trust to the consensus rules of the underlying network. The word decentralized describes the absence of a single issuing authority, not necessarily the absence of any infrastructure operator.
How DIDs relate to neighboring identity concepts
A DID is a building block, not a complete identity system. It supplies an identifier and keys; claims about the holder, such as a date of birth or a professional license, travel in separate documents. The table distinguishes DIDs from concepts they are often confused with.
| Concept | What it is | Relationship to a DID |
|---|---|---|
| Verifiable credential | Signed set of claims about a subject | Issuer and subject are often DIDs |
| Self-sovereign identity | Model of user-controlled identity | DIDs are one technical enabler |
| Decentralized identity | Broader architecture and ecosystem | DIDs form its identifier layer |
| URN or UUID | Unique name with no key material | DIDs add resolvable cryptographic control |
| Federated login ID | Account issued by an identity provider | Provider can revoke or observe use |
In practice, an issuer signs a verifiable credential with a key listed under assertionMethod in its DID document, and a verifier resolves the issuer DID to confirm the signature. The holder may present the credential through a protocol such as OpenID for Verifiable Credentials, often combined with selective disclosure so that only the necessary attributes are revealed.
Privacy properties and correlation risk
DIDs can strengthen privacy, but only when used deliberately. A single public DID reused across many relying parties becomes a global correlation handle, letting unrelated services link a person’s activity. For individuals, the recommended practice is pairwise DIDs, a distinct identifier for each relationship, which methods such as did:peer support natively.
Personal data should never be written into a DID document published on an immutable ledger. Under the GDPR, the right to erasure is difficult or impossible to honor once data is anchored permanently, and even a public key can count as personal data if it is linkable to an individual. Public, ledger-anchored DIDs are therefore better suited to issuers and organizations than to private persons.
Resolution itself can leak information. When a verifier fetches a did:web document, the hosting server learns who checked whom and when. Caching resolvers and local resolution reduce this signal, but they do not remove it entirely.
Choosing and operating a DID in practice
Selecting a DID approach is a decision about who controls keys, who is publicly visible and how recovery works. The decision table below summarizes common situations.
| Situation | Recommended approach | Reason |
|---|---|---|
| Public credential issuer | did:web or governed registry | Easy discovery and organizational accountability |
| Individual holder in a wallet | Pairwise or ephemeral DIDs | Limits cross-service tracking |
| Short-lived test or device | did:key | No infrastructure required |
| Long-lived identity needing rotation | Method with update operations | Keys can be replaced after compromise |
Operational failures are common. Key loss without a recovery mechanism can make a DID permanently uncontrollable, a domain lapse can break every did:web identifier hosted on it, and an abandoned ledger can leave documents unresolvable. Mature deployments document key rotation, deactivation and backup procedures before issuing the first credential.
- Misconception: a DID proves who someone is. It proves only control of keys; identity proofing happens separately.
- Misconception: every DID uses a blockchain. Many methods use web hosting or no registry at all.
- Misconception: DIDs are anonymous. Reuse and resolution patterns can make them highly traceable.
The short version
A decentralized identifier is like a personal address that you create yourself instead of receiving it from a company. Attached to it is a public lock that only your private key can open. Anyone can look up the address and check that a message really came from you.
Because no single company owns the address, it does not disappear if a service shuts down. The key point is that you hold the key, so you hold the control, and you can use different addresses with different services to stay harder to track.
Where it makes a difference
A university decides to issue digital diplomas. It publishes a did:web identifier on its own domain, with a signing key listed in the DID document, and signs each diploma as a verifiable credential. Graduates store the diplomas in a wallet app that creates a separate pairwise DID for each employer they apply to.
When a hiring manager receives a diploma, the verification software resolves the university DID, retrieves the public key and checks the signature in under a second. The employer does not need to call the registrar, and the university does not learn which companies the graduate approached. The outcome is instant, tamper-evident verification without central tracking, while the graduate shares only the degree title and graduation year.