Децентрализованный идентификатор (DID)
Новый тип цифрового идентификатора, который является глобально уникальным и криптографически верифицируемым, но создается и принадлежит исключительно пользователю.
Объединяя DID с Verifiable Credentials (VCs), пользователи могут доказывать определенные факты о себе (например, возраст или наличие диплома) третьим сторонам без раскрытия лишних данных (Zero-Knowledge) и без необходимости обращаться в учреждение, выдавшее документ.
graph LR
Center["Децентрализованный идентификатор (DID)"]:::main
Pre_cryptography["cryptography"]:::pre --> Center
click Pre_cryptography "/terms/cryptography"
Pre_public_key["public-key"]:::pre --> Center
click Pre_public_key "/terms/public-key"
Rel_verifiable_credentials["verifiable-credentials"]:::related -.-> Center
click Rel_verifiable_credentials "/terms/verifiable-credentials"
Rel_soulbound_token_sbt["soulbound-token-sbt"]:::related -.-> Center
click Rel_soulbound_token_sbt "/terms/soulbound-token-sbt"
Rel_non_fungible_token_nft["non-fungible-token-nft"]:::related -.-> Center
click Rel_non_fungible_token_nft "/terms/non-fungible-token-nft"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Простыми словами
Представьте, что традиционный логин или email — это арендованная квартира. Если владельцу (компании) что-то не понравится, вас могут выселить, и вы потеряете свой адрес. DID — это как построить собственный дом на собственной земле. Только у вас есть ключ, адрес принадлежит вам навсегда, и ни одна компания не может его забрать.
🤓 Expert Deep Dive
Архитектура DID: Спецификация W3C определяет строгий формат: did::. При резолвинге DID возвращается JSON-LD объект (DID Document), который содержит Verification Methods (открытые ключи Ed25519/Secp256k1) для проверки подписей, и Service Endpoints. Методы: DID не требуют блокчейна обязательно. Их можно привязать к IPFS, P2P-сетям или обычным веб-серверам (метод did:web).
❓ Частые вопросы
Why can't I just use 'Log in with Google'?
When you use centralized logins, that company tracks everywhere you go online, and they can revoke your access at any time. A DID gives you a login that you cryptographically own and control forever.
Does a DID have to be stored on a blockchain?
No. While many DID methods use blockchains to prevent censorship, the W3C standard is method-agnostic. You can use 'did:web' to host a DID on a standard web server.
What is inside a DID Document?
It's a small text file (JSON) that contains the public cryptographic keys associated with the DID, allowing anyone to verify digital signatures made by the owner.