Pith. sign in

Gotta Hash 'Em All! Speeding Up Hash Functions for Zero-Knowledge Proof Applications

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

Collision-resistant cryptographic hash functions (CRHs) are crucial for security, particularly for message authentication in Zero-knowledge Proof (ZKP) applications. However, traditional CRHs like SHA-2 or SHA-3, while optimized for CPUs, generate large circuits, rendering them inefficient in the ZK domain. Conversely, ZK-friendly hashes are designed for circuit efficiency but struggle on conventional hardware, often orders of magnitude slower than standard hashes due to their reliance on expensive finite field arithmetic. To bridge this performance gap, we present HashEmAll, a novel collection of FPGA-based realizations for three prominent ZK-friendly hashes: Griffin, Rescue-Prime, and Reinforced Concrete. Each offers distinct optimization profiles, with both area-optimized and latency-optimized variants available, allowing users to tailor hardware selection to specific application constraints regarding resource utilization and performance. Our extensive evaluation shows that latency-optimized HashEmAll designs outperform CPU implementations by at least $10 \times$, with the leading design achieving a $23 \times$ speedup. These gains are coupled with lower power consumption and compatibility with accessible FPGAs. Importantly, the highly parallel and pipelined architecture of HashEmAll enables significantly better practical scaling than CPU-based approaches towards building real-world ZKP applications, such as data commitments with Merkle Trees, by mitigating the hashing bottleneck for large trees. This highlights the suitability of HashEmAll for real-world ZKP applications involving large-scale data authentication. We also highlight the ability to translate the HashEmAll methodology to various ZK-friendly hash functions and different field sizes.

citation-role summary

background 1

citation-polarity summary

fields

cs.CR 1

years

2025 1

verdicts

CONDITIONAL 1

roles

background 1

polarities

background 1

representative citing papers

Zero-Knowledge Proof Frameworks: A Systematic Survey

cs.CR · 2025-02-10 · conditional · novelty 5.0

A systematic survey and reproducible benchmark of 25 open-source zero-knowledge proof frameworks, with Docker environments and performance comparisons on SHA-256 and matrix multiplication.

citing papers explorer

Showing 1 of 1 citing paper.

  • Zero-Knowledge Proof Frameworks: A Systematic Survey cs.CR · 2025-02-10 · conditional · none · ref 123 · internal anchor

    A systematic survey and reproducible benchmark of 25 open-source zero-knowledge proof frameworks, with Docker environments and performance comparisons on SHA-256 and matrix multiplication.