Skip to main content

Type Alias: CID

CID: string & object

Defined in: src/types/atproto.ts:125

Content Identifier (CID) - cryptographic hash of content.

Type declaration

__brand

readonly __brand: "CID"

Remarks

CIDs are self-describing content addresses using multihash, multicodec, and multibase. They provide cryptographic integrity verification and content deduplication.

CIDs are used for:

  • Blob references (PDFs, images, supplementary files)
  • Record versioning (each record version has unique CID)
  • Merkle tree construction (repository commits)

Format: Base32-encoded multihash with codec prefix

Example

const cid = 'bafyreib2rxk3rybk3aobmv5dgudb4vls5sj3bkxfq7c42wgk6b6a7q';

See

CID Specification