Locus: A Framework for Exploring and Optimizing Point Addition Hardware for Zero-Knowledge Proofs

Gaurav Kuwar, Alhad Daftardar, Jianqiao Mo, Siddharth Garg, Brandon ReagenarXiv 2026 · DOI

TL;DR

Locus is an automated, open-source framework designed to explore and optimize the hardware implementation of elliptic curve point addition (PADD)—the primary computational bottleneck in Zero-Knowledge Proofs (ZKPs). By transforming microarchitectural choices into configurable design knobs, Locus automatically generates highly optimized ASIC and FPGA implementations, delivering massive speedups and area reductions over existing hand-tuned designs.

What Problem Does This Paper Address?

Zero-Knowledge Proofs (ZKPs) are essential for privacy-preserving applications like blockchain rollups and confidential computing, but they are notoriously slow to compute. The primary culprit is Multi-Scalar Multiplication (MSM), an operation that routinely consumes 60% to 90% of total ZKP proving time and over half of the accelerator's compute area.

MSM itself is built entirely from repeated elliptic curve point additions (PADD). Because these operations deal with massive numbers (256 to 753 bits wide), a single PADD requires tens of expensive large-bitwidth modular multiplications.

Prior hardware accelerators have tackled this by hand-tuning a single PADD unit for one specific elliptic curve. This rigid approach leaves a massive microarchitectural design space completely unexplored. Hardware designers lacked a systematic, automated way to navigate the complex trade-offs between pipeline depth, area, latency, and curve-specific parameters.

Methods

Locus bridges this gap by introducing a modular, plug-and-play framework built on top of High-Level Synthesis (HLS). Instead of treating HLS as a black box, Locus implements its own highly optimized cryptographic primitives as parameterized source code, exposing key microarchitectural choices as explicit design knobs:

  • 3-Layer Recursive Multiplier Model: To handle the massive integer multiplications, Locus implements a hybrid multiplier that dynamically transitions from Karatsuba decomposition to Schoolbook decomposition, and finally to native HLS baseline multipliers once the operand width drops below a configurable threshold.
  • Intelligent Constant Fixing: Cryptographic operations often involve fixed parameters (like the prime modulus $q$ or curve coefficients). Locus allows designers to independently toggle whether these parameters are treated as variables or fixed constants compiled into optimized adder trees using Non-Adjacent Form (NAF) encoding.
  • Hardware-Aware Analytical Model: Sweeping thousands of configurations using full cycle-accurate simulations is prohibitively slow. Locus includes a lightweight analytical model that can evaluate over 10,000 MSM configurations in under 10 seconds, staying within 5% accuracy of cycle-accurate simulations to quickly find Pareto-optimal designs.
Decomposed Karatsuba Multiplier Architecture

Datasets

The framework was evaluated across a comprehensive suite of standardized elliptic curves spanning different algebraic forms (Short Weierstrass and Twisted Edwards) and applications (ZKPs, cryptocurrency, and digital signatures). These include:

  • ZKP/Blockchain Curves: BN254, BLS12-377, BLS12-381, MNT4753, and Secp256k1.
  • Digital Signature Curves: Ed25519 and Ed448.
  • Optimized Variants: BLS12-377* (the Twisted Edwards birational equivalent).

Key Insights and Ideas

  • Karatsuba is Not a Universal Fix: While Karatsuba decomposition reduces area by minimizing partial products, its recursive additions and subtractions add latency. Locus revealed that intermediate Karatsuba depths (1–3) usually yield the best Area-Delay Product (ADP), rather than going as deep as possible.
  • Constant-Fixing is Highly Curve-Dependent: Intuitively, fixing all constants should be best. However, Locus showed that optimal latency requires nuanced, curve-specific configurations. For instance, the BN254 curve achieves the lowest latency when the prime $q$ is fixed but its reduction constant $q'$ is kept variable, while the MNT4753 curve prefers the exact opposite.
  • The Multi-Precision Trap: Multi-precision arithmetic (sharing smaller word-width units to compute large numbers) saves significant area. However, Locus demonstrated that it severely penalizes latency and prevents full pipelining, making it unsuitable for high-throughput ZKP hardware.
  • Taming Pipeline Depth: As hardware clocks scale higher, PADD units require deeper pipelines. However, if a pipeline becomes deeper than the number of available "buckets" in an MSM scheduler, hardware utilization plummets. Locus allows designers to optimize and shorten pipeline depth specifically to maintain high system-level utilization.

Key Results

Locus was evaluated on a 12nm ASIC technology node and various AMD-Xilinx FPGA platforms, showing dramatic improvements over state-of-the-art, hand-tuned baselines:

  • ASIC Improvements: Compared to prior specialized ASICs, Locus's fastest designs achieved a $2.71\times$ geomean speedup, while its smallest designs achieved a $3.11\times$ geomean area reduction.
  • CPU Speedup: Locus ASIC designs achieved a $19\times$ to $70\times$ speedup over a single-threaded AMD EPYC CPU running the highly optimized arkworks Rust library.
  • System-Level Impact: When integrated into a full end-to-end ZKP accelerator (simulating a Groth16 prover workload), Locus-optimized PADD units translated to a $3.15\times$ geomean speedup on overall proof generation at iso-area.
Design Space of PADD across named curves

Limitations and Future Work

The current evaluation of Locus focuses primarily on fully-pipelined, Initiation Interval (II) = 1 designs for single-precision implementations. While the framework technically supports II > 1 configurations, their design space was not as deeply explored in this study.

Looking forward, the authors note that Locus's highly optimized modular arithmetic primitives are not strictly limited to ZKPs. A promising direction for future work includes extending the framework to accelerate other advanced cryptographic protocols, such as Fully Homomorphic Encryption (FHE).

Summary updated

BibTeX
@misc{kuwar2026locus,
  author = {Gaurav Kuwar and Alhad Daftardar and Jianqiao Mo and Siddharth Garg and Brandon Reagen},
  title = {{Locus: A Framework for Exploring and Optimizing Point Addition Hardware for Zero-Knowledge Proofs}},
  year = {2026},
  eprint = {2609.18846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.18846},
}
Figure