Comprehensive guide for decentralized identity standards covering essential concepts, practical examples, and production best practices.
Decentralized identity standards enable users and systems to verify identity claims across multiple blockchains and services without relying on centralized authorities. These standards matter when a user signs in to a dApp using a wallet, and the dApp must trust the user’s identity across chains, services, and verifiable credentials. They matter when a smart contract needs to validate a user’s proof of residency, employment, or ownership of digital assets, all rooted in cryptographically verifiable data.
To verify an identity claim, a system receives a verifiable credential (VC) and checks its integrity, issuer authenticity, and validity period. A VC is a JSON-LD document signed by an issuer, containing a @context, type, id, and credentialSubject. The signature is typically a JSON Web Signature (JWS), and the credential can be issued in multiple formats, including Compact JSON, JWT, and Linked Data Proofs (LDP).
The verification process begins with the presentation of the VC. A client presents the credential via a presentation object that includes a @context, id, type, and verifiableCredential list. The verifier validates the entire structure using a set of checks:
proof field, which contains proofPurpose, created, proofValue, and proofPurpose.credentialSubject fields.revocationList or credentialStatus.Example of a verifiable credential in Compact JSON:
{
"id": "https://example.com/credentials/123",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": "https://example.com/issuers/123",
"issuanceDate": "2023-01-01T12:00:00Z",
"credentialSubject": {
"id": "did:example:alice",
"name": "Alice Johnson",
"degree": {
"type": "BachelorOfScience",
"name": "Computer Science"
}
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2023-01-01T12:00:00Z",
"verificationMethod": "did:example:alice#key1",
"proofPurpose": "assertionMethod",
"proofValue": "base64urlencoded-signature"
}
}
Verification fails silently if the proofPurpose is not assertionMethod, authentication, or proofPurpose. The proofValue must be correctly decoded and validated against the verificationMethod’s public key. If the proof is missing or malformed, the verifier rejects the credential.
A credential may be revoked at any time. The verifier must check the credential’s revocation status using the credentialStatus field. The most common approaches are:
To validate revocation, the verifier fetches the credentialStatus object:
"credentialStatus": {
"id": "https://example.com/revocation-lists/123",
"type": "RevocationList2020",
"revocationListIndex": "123",
"revocationListCredential": "https://example.com/revocation-lists/123/credential"
}
The verifier then downloads the revocation list and checks whether revocationListIndex is in the list. It must verify the integrity of the list using the revocationListCredential — a VC that proves the list’s authenticity.
If the list is updated, the verifier must also check the Merkle proof in the proof field of the revocationListCredential. The proof contains rootHash, leafIndex, path, and leafValue. The verifier rebuilds the Merkle root and compares it to the rootHash. A mismatch indicates a corrupted or tampered list.
When a credential is issued on one chain (e.g., Ethereum) and must be verified on another (e.g., Polygon), the verifier must resolve the decentralized identifier (DID) associated with the credential.
A DID is a globally unique identifier starting with did: and followed by a method (e.g., did:ethr, did:key, did:web). The DID document is a JSON object that describes the DID’s properties, including public keys, authentication methods, services, and verification methods.
Example DID document (JSON):
{
"@context": ["https://w3id.org/did/v1"],
"id": "did:ethr:0x1234567890abcdef",
"verificationMethod": [
{
"id": "did:ethr:0x1234567890abcdef#key1",
"type": "EcdsaSecp256k1VerificationKey2019",
"controller": "did:ethr:0x1234567890abcdef",
"publicKeyHex": "04a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0"
}
],
"authentication": [
"did:ethr:0x1234567890abcdef#key1"
],
"service": [
{
"id": "did:ethr:0x1234567890abcdef#identity",
"type": "IdentityService",
"serviceEndpoint": "https://identity.example.com/api"
}
]
}
To resolve a DID, the verifier performs a DID Resolution request via HTTP:
GET /did:ethr:0x1234567890abcdef HTTP/1.1
Host: example.com
Accept: application/did+json
The response returns the DID document and an optional didDocumentMetadata object, which may include created, updated, and proof fields.
If the DID uses did:ethr, the resolver looks up the Ethereum contract at 0x1234567890abcdef, reads the didDocument storage slot, and returns the JSON. If the contract is not deployed, the resolver returns a 404 with didDocument null.
Issuing a credential begins with selecting an issuer DID and a schema for the credential. The issuer signs the credential using a private key associated with the DID.
The issuer sends a POST request to a service endpoint, such as https://issuer.example.com/credentials, with the following payload:
{
"id": "https://issuer.example.com/credentials/456",
"type": ["VerifiableCredential"],
"issuer": "did:example:issuer1",
"issuanceDate": "2023-02-15T08:30:00Z",
"credentialSubject": {
"id": "did:example:alice",
"name": "Alice Smith",
"email": "[email protected]"
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2023-02-15T08:30:00Z",
"verificationMethod": "did:example:issuer1#key1",
"proofPurpose": "assertionMethod"
}
}
The issuer signs the entire JSON using a JWS algorithm (e.g., Ed25519Signature2020). The signature is then embedded in the proof field as proofValue.
The issuer must also register the verificationMethod in the DID document and ensure the private key is available. If the verificationMethod is not present in the DID document, the verifier rejects the credential.
A credential may include a @context that references a schema. The schema defines the structure of credentialSubject. A common schema is defined at https://schema.org/CreativeWork, but more specific schemas are used for domain-specific credentials.
Example schema registration:
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/Person",
"https://example.com/schemas/education.jsonld"
]
The education.jsonld file defines:
{
"@context": {
"degree": {
"@id": "https://example.com/ontology/degree",
"@type": "@id"
},
"institution": {
"@id": "https://example.com/ontology/institution",
"@type": "@id"
}
},
"type": "https://example.com/ontology/EducationCredential"
}
The verifier checks that all required fields are present and correctly typed. If degree is a string instead of a URI, or institution is missing, the verification fails silently unless the schema includes required fields.
User authentication using decentralized identity involves a DID Challenge. The relying party generates a challenge and sends it to the user’s wallet. The user signs the challenge using their private key and returns the signature.
The challenge is typically a JWS payload containing:
challenge: a random string (e.g., abc123def456)The wallet signs this payload using the DID’s authentication method. The resulting JWS is sent back as a POST to https://dapp.example.com/auth.
The verifier checks:
challenge matches the expected value.domain is correct.audience includes the verifier’s DID.signature is valid against the verificationMethod in the DID document.If the verificationMethod is a Ed25519Signature2020, the verifier decodes the proofValue and validates it using the public key from the DID document.
A common failure is mismatched proofPurpose: the challenge was signed using authentication, but the verifier expects assertionMethod. The proofPurpose field must match exactly.
Identity lifecycles involve creating, updating, and deactivating DIDs. The process begins with DID Creation:
id: did:key:z6MkjvC1x2kP5v1f5t1e1c1b1a1z1y1x1w1v1u1t1s1r1q1p1o1n1m1l1k1j1i1h1g1f1e1d1c1b1a1verificationMethod: a key1 with publicKeyHexauthentication: key1To update a DID, the user creates a DID Document Update transaction. The update includes:
operation: add, remove, or replacetarget: the field to update (e.g., authentication)value: the new valueExample update:
{
"id": "https://dapp.example.com/did-update/1",
"operation": "add",
"target": "authentication",
"value": "did:key:z6MkjvC1x2kP5v1f5t1e1c1b1a1z1y1x1w1v1u1t1s1r1q1p1o1n1m1l1k1j1i1h1g1f1e1d1c1b1a1#key2"
}
The verifier must validate the update by checking the proof field, which contains proofPurpose: "capabilityDelegation" and proofValue signed by the current DID.
When a DID is deactivated, the verifier checks the deactivated field in the DID document. If deactivated is true, the DID is no longer valid. The verifier also checks the updated timestamp and validates any proof on the deactivation event.
proof field: The verifier assumes proof is always present but fails silently when it is not. The proofPurpose may be authentication, but the verificationMethod is not in the DID document.proofPurpose: The verifier expects assertionMethod, but the issuer used authentication. The proofValue is valid, but the purpose does not match.revocationListIndex is correct, but the list is stale. The verifier must fetch the list and validate the Merkle proof.null for didDocument, but the didDocumentMetadata is missing or incorrect.credentialSubject contains name but the schema requires givenName and familyName. The verifier may accept name as givenName, but fails if familyName is missing.did:<method>:<id> with Accept: application/did+json.did:example:alice as the credentialSubject.id and check proof and credentialStatus.JWS payload with challenge, domain, nonce, audience, signed by the user’s DID.revocationListCredential, extract rootHash, and validate Merkle proof.POST to https://dapp.example.com/did-update with operation, target, and value.These patterns form the backbone of decentralized identity across blockchains and services. They are robust, composable, and resilient to failure, but only when implemented with precision.
This page was rewritten on 18 October 2026. It replaced a templated version that was not specific to its own title. How these pages are written and checked. If anything here is wrong, tell us at [email protected] and we will correct it.
We use cookies for analytics (Google Analytics) and advertising (Google AdSense) to improve your experience and support free content. Privacy Policy