Decentralized identifier

Also known as: DID

On this page 7

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.

ElementPurposeTypical content
idStates the DID being describedThe full DID string
controllerNames who may change the documentOne or more DIDs
verificationMethodPublishes keys or other proof materialEd25519 or P-256 public keys
authenticationLists keys usable to log inReferences to verification methods
assertionMethodLists keys for signing credentialsIssuer signing keys
servicePoints to related endpointsMessaging or credential exchange URLs
Core elements of a DID document

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.

MethodWhere the document livesUpdate supportMain trade-off
did:keyDerived from the public key itselfNoneSimple but cannot rotate keys
did:webHTTPS file on a domainEdit the hosted fileRelies on DNS and web hosting
did:peerExchanged directly between partiesLimited, pairwiseNot publicly resolvable by design
did:ionSidetree layer anchored to BitcoinSigned operationsComplex infrastructure
did:ebsiEuropean Blockchain Services InfrastructureGoverned registryPermissioned for legal entities
did:jwkEncoded JSON Web KeyNoneSame limits as did:key
Commonly used DID methods compared

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.

ConceptWhat it isRelationship to a DID
Verifiable credentialSigned set of claims about a subjectIssuer and subject are often DIDs
Self-sovereign identityModel of user-controlled identityDIDs are one technical enabler
Decentralized identityBroader architecture and ecosystemDIDs form its identifier layer
URN or UUIDUnique name with no key materialDIDs add resolvable cryptographic control
Federated login IDAccount issued by an identity providerProvider can revoke or observe use
DIDs compared with related identity concepts

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.

SituationRecommended approachReason
Public credential issuerdid:web or governed registryEasy discovery and organizational accountability
Individual holder in a walletPairwise or ephemeral DIDsLimits cross-service tracking
Short-lived test or devicedid:keyNo infrastructure required
Long-lived identity needing rotationMethod with update operationsKeys can be replaced after compromise
Selecting a DID approach by situation

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.