{
  "slug": "hash-challenges",
  "term": "Hash Challenges",
  "aliases": [
    "Hash Challenges deduplication protocol"
  ],
  "definition": "Hash Challenges is a deduplication protocol that sends short hash prefixes to find candidates, then checks their remaining digest bytes before reusing chunks.",
  "note": "The sender transmits a prefix; the receiver returns suffixes for matching candidates. The sender confirms a full-digest match or rejects the candidate and supplies missing content. Prefix equality alone never authorizes reuse. [hc2012]\n\nThe 2012 evaluation used source-tree snapshots, five measured runs after a cold start, SHA-1 digests and 28-bit challenges. Its reported savings concern that experiment, not modern storage fleets. SHA-1 is a historical choice, not a current security recommendation. [hc2012] [nist-hashes]\n\nFor one absent query and M distinct unrelated chunks, independent uniform b-bit prefixes give expected candidate count M/2^b, but probability of any candidate 1-(1-2^-b)^M. With M=3 and b=2 these are 3/4 and 37/64. They are not an archive-wide birthday probability or a data-loss rate. The executable example uses constructed digests, not measured collisions. [hesela-hc]\n\nTraffic accounting: every candidate also requires a forward offset or rejection field. In a stated 100,000-query scenario, four-byte prefixes minimize total bytes but three-byte prefixes minimize serialized link service across widths 1-8. This is an analytical scenario, not measured transfer time. [hesela-hc]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Shorter prefixes reduce outgoing hash bytes but increase candidate responses; the useful width depends on receiver population and traffic costs.",
      "citationIds": [
        "hc2012"
      ]
    },
    {
      "text": "Full-digest comparison retains the chosen hash function's collision assumptions; it is not byte-by-byte equality or proof of possession.",
      "citationIds": [
        "hc2012",
        "nist-hashes"
      ]
    }
  ],
  "related": [
    "deduplication",
    "hash-collision",
    "birthday-bound",
    "content-defined-chunking",
    "proof-of-ownership"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-04",
  "citations": [
    {
      "id": "hc2012",
      "title": "Barreto, Veiga and Ferreira. Hash challenges. Information Processing Letters 112(10), 380-385 (2012). DOI 10.1016/j.ipl.2012.01.012; sections 2-3.",
      "url": "https://www.dpss.inesc-id.pt/~lveiga/prosopon/pubs/32-ipl-hash-challenges.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "nist-hashes",
      "title": "NIST CSRC: Hash Functions, SHA-1 transition and security properties.",
      "url": "https://csrc.nist.gov/projects/hash-functions",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-hc",
      "title": "Hesela: hash-prefix counting and directional traffic budgets, assumptions and executable tests.",
      "url": "https://hesela.dev/research/hash-challenges/README.md",
      "accessed": "2026-12-04"
    }
  ],
  "provenance": [
    "Source synthesis plus a synthetic counting example; no implementation benchmark or reproduction of the paper's transfer-time results.",
    "Protocol and evaluation: paper sections 2-3 and Appendix A. Model assumptions, code and tests: https://hesela.dev/research/hash-challenges/README.md",
    "Directional traffic uses a deduplicated M-chunk inventory with one true match when present. Framing, retries, caps and processing are excluded; link service is not completion time."
  ]
}
