{
  "tool_id": "art-210-ipfs-cid-computer",
  "note": "golden_hash filled by node golden-parity.test.mjs --update. Known vector 'hello world' -> bafkreifzjut3te2nhyekklss27nh3k72ysco7y32koao5eei66wof36n5e independently verified.",
  "vectors": [
    {
      "name": "known_hello_world_raw",
      "policy_parameters": {
        "text": "hello world",
        "codec": "raw"
      },
      "output_payload": {
        "cid": "bafkreifzjut3te2nhyekklss27nh3k72ysco7y32koao5eei66wof36n5e",
        "codec": "raw",
        "codec_code": "0x55",
        "multihash_fn": "sha2-256",
        "multihash_fn_code": "0x12",
        "digest_length": 32,
        "digest_hex": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
        "cid_bytes_hex": "01551220b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
        "byte_length": 11,
        "known_vector_verified": true,
        "disclaimer": "Not legal advice. CID is computed from your input text only. No pinning, no network. Verify against ipfs add --cid-version=1 for your codec before use."
      },
      "golden_hash": "8b9615e48f407e55502645a5ad76e08076e9f94566aa31c3a45a42a341910f79"
    },
    {
      "name": "nft_metadata_json",
      "policy_parameters": {
        "text": "{\"name\":\"Token #1\",\"description\":\"Test\",\"image\":\"ipfs://Qm\"}",
        "codec": "raw"
      },
      "output_payload": {
        "cid": "bafkreibjhgh37p6gpsbwnknxvpnk6rzeb5bijkq5jucy5oaehmptgdaqru",
        "codec": "raw",
        "codec_code": "0x55",
        "multihash_fn": "sha2-256",
        "multihash_fn_code": "0x12",
        "digest_length": 32,
        "digest_hex": "29398fbfbfc67c8366a9b7abdaaf47240f4284aa1d4d058eb8043b1f330c108d",
        "cid_bytes_hex": "0155122029398fbfbfc67c8366a9b7abdaaf47240f4284aa1d4d058eb8043b1f330c108d",
        "byte_length": 60,
        "known_vector_verified": true,
        "disclaimer": "Not legal advice. CID is computed from your input text only. No pinning, no network. Verify against ipfs add --cid-version=1 for your codec before use."
      },
      "golden_hash": "1b0e0d69a27ed9acb7f57ce0511ff5977677467cb6e90606d7a907e3b157c935"
    },
    {
      "name": "dag_pb_codec",
      "policy_parameters": {
        "text": "hello world",
        "codec": "dag-pb"
      },
      "output_payload": {
        "cid": "bafybeifzjut3te2nhyekklss27nh3k72ysco7y32koao5eei66wof36n5e",
        "codec": "dag-pb",
        "codec_code": "0x70",
        "multihash_fn": "sha2-256",
        "multihash_fn_code": "0x12",
        "digest_length": 32,
        "digest_hex": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
        "cid_bytes_hex": "01701220b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
        "byte_length": 11,
        "known_vector_verified": true,
        "disclaimer": "Not legal advice. CID is computed from your input text only. No pinning, no network. Verify against ipfs add --cid-version=1 for your codec before use."
      },
      "golden_hash": "31f1cdf100ecc9850a04cb8c694f92c620ec8a1597ef13a6322f22bc0e1e174c"
    },
    {
      "name": "empty_input",
      "policy_parameters": {},
      "output_payload": {
        "cid": "bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku",
        "codec": "raw",
        "codec_code": "0x55",
        "multihash_fn": "sha2-256",
        "multihash_fn_code": "0x12",
        "digest_length": 32,
        "digest_hex": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "cid_bytes_hex": "01551220e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "byte_length": 0,
        "known_vector_verified": true,
        "disclaimer": "Not legal advice. CID is computed from your input text only. No pinning, no network. Verify against ipfs add --cid-version=1 for your codec before use."
      },
      "golden_hash": "7811c59f750eb2c6d769f3fb54970cc1eed2906b90228933ebc29aeb790717bb"
    }
  ]
}
