{
  "id": "ipfs_cid",
  "kind": "datatype",
  "status": "draft",
  "name": "Content identifier (CID) of IPFS and IPLD",
  "doc": "Self-describing content address of the multiformats CID specification, used by IPFS, IPLD, Filecoin and the AT Protocol. It is made from a cryptographic hash of the content, so the same content always has the same CID. A CIDv0 is 46 base58btc characters starting with Qm and always holds a SHA-256 hash of a dag-pb block. A CIDv1 starts with a multibase prefix that names its encoding; the default is b for lowercase base32, as in bafy... strings. The regexp covers CIDv0 and base32 CIDv1, not CIDv1 in other encodings such as base58btc (prefix z) or base36 (prefix k).",
  "is_pii": false,
  "categories": [
    "identifiers",
    "internet",
    "cryptography"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:Qm[1-9A-HJ-NP-Za-km-z]{44}|b[a-z2-7]{58,})$",
  "examples": [
    {
      "value": "QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR",
      "description": "CIDv0 of the IPFS content addressing documentation",
      "valid": true
    },
    {
      "value": "bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi",
      "description": "The same content as a base32 CIDv1, IPFS documentation",
      "valid": true
    },
    {
      "value": "QmY7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
      "description": "Sample CID of the IPFS CID Inspector",
      "valid": true
    },
    {
      "value": "zb2rhe5P4gXftAwvA4eXQ5HJwsER2owDyS9sKaQRRVQPn93bA",
      "description": "CIDv1 in base58btc, not covered",
      "valid": false
    },
    {
      "value": "QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMn0",
      "description": "0 is not a base58btc character",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/multiformats/cid"
    },
    {
      "type": "doc",
      "url": "https://docs.ipfs.tech/concepts/content-addressing/"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор содержимого (CID) IPFS и IPLD"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/identifiers/ipfs_cid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/identifiers/ipfs_cid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/identifiers/ipfs_cid.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ipfs_cid",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ipfs_cid.json"
  }
}