Hash Challenges
Hash Challenges is a deduplication protocol that sends short hash prefixes to find candidates, then checks their remaining digest bytes before reusing chunks.
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. [1]
The 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. [1] [2]
For 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. [3]
Traffic 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. [3]
Relations
- related
- Data deduplication, Hash collision, Birthday bound, Content-defined chunking, Proof of ownership (deduplication)
Limitations
- Shorter prefixes reduce outgoing hash bytes but increase candidate responses; the useful width depends on receiver population and traffic costs. [1]
- Full-digest comparison retains the chosen hash function's collision assumptions; it is not byte-by-byte equality or proof of possession. [1, 2]
Citations
- 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.
- NIST CSRC: Hash Functions, SHA-1 transition and security properties.
- Hesela: hash-prefix counting and directional traffic budgets, assumptions and executable tests.
Sources & caveats
- 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.