arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.05890cs.ARcs.CR
收藏

SZKP:一种面向零知识证明的可扩展加速器架构

SZKP: A Scalable Accelerator Architecture for Zero-Knowledge Proofs

Alhad Daftardar, Brandon Reagen, Siddharth Garg

AI总结:

本文提出SZKP,首个在片上利用结构化数据流加速完整零知识证明的ASIC框架,针对NTT和MSM两大原语实现硬件加速,较CPU、ASIC和GPU分别获得超过400倍、3倍和12倍的加速。

摘要:

零知识证明(ZKPs)是可验证计算中的一种新兴范式。在云计算等应用场景中,客户端(称为验证者)可以使用零知识证明来验证服务提供商(称为证明者)确实基于公开输入执行了正确的计算。零知识证明中一个近期备受关注的变体是zkSNARKs,它能够生成简洁的证明,并可由最终用户快速验证。然而,证明生成本身对于每笔交易而言都非常耗时。证明生成中的两个关键原语是数论变换(NTT)和多标量乘法(MSM)。这些原语是硬件加速的主要候选对象,此前的工作已经研究了GPU实现和定制RTL实现。然而,这两种算法都涉及复杂的数据流模式——标准NTT在蝶形计算中逐阶段存在不规则的内存访问,而使用Pippenger算法的MSM在部分和计算中存在数据依赖的内存访问。我们提出了SZKP,这是一个可扩展的加速器框架,也是首个通过利用NTT和MSM的结构化数据流在片上加速整个证明过程的ASIC。与CPU、ASIC和GPU实现相比,SZKP分别实现了超过400倍、3倍和12倍的保守全证明加速。

英文摘要:

Zero-Knowledge Proofs (ZKPs) are an emergent paradigm in verifiable computing. In the context of applications like cloud computing, ZKPs can be used by a client (called the verifier) to verify the service provider (called the prover) is in fact performing the correct computation based on a public input. A recently prominent variant of ZKPs is zkSNARKs, generating succinct proofs that can be rapidly verified by the end user. However, proof generation itself is very time consuming per transaction. Two key primitives in proof generation are the Number Theoretic Transform (NTT) and Multi-scalar Multiplication (MSM). These primitives are prime candidates for hardware acceleration, and prior works have looked at GPU implementations and custom RTL. However, both algorithms involve complex dataflow patterns -- standard NTTs have irregular memory accesses for butterfly computations from stage to stage, and MSMs using Pippenger's algorithm have data-dependent memory accesses for partial sum calculations. We present SZKP, a scalable accelerator framework that is the first ASIC to accelerate an entire proof on-chip by leveraging structured dataflows for both NTTs and MSMs. SZKP achieves conservative full-proof speedups of over 400$\times$, 3$\times$, and 12$\times$ over CPU, ASIC, and GPU implementations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑