Type Alias: DID
DID:
string&object
Defined in: src/types/atproto.ts:71
Decentralized Identifier (DID) for AT Protocol users.
Type declaration
__brand
readonly__brand:"DID"
Remarks
DIDs provide globally unique, cryptographically verifiable identifiers that don't require a central registration authority.
Supported DID methods:
did:plc:*- Placeholder DID (AT Protocol default)did:web:*- Web-based DID (domain-based)
Format: did:method:identifier
DIDs are resolved to DID Documents containing public keys, service endpoints (PDS URLs), and verification methods.
Example
Valid DIDs:
const did1 = toDID('did:plc:z72i7hdynmk6r22z27h6tvur');
const did2 = toDID('did:web:alice.example.com');