lp: 4140 title: Pasta Curves (Pallas and Vesta) description: EVM precompile for the Pallas/Vesta 2-cycle, the curve pair that makes recursive proof composition and incrementally verifiable computation practical author: Lux Core Team (@luxfi) discussions-to: https://github.com/luxfi/lps/discussions status: Final implementation-rust: none implementation-cpp: none implementation-go: shipped type: Standards Track category: Core tags: [evm, precompile, pasta, pallas, vesta, classical-curve, halo2, recursive-proofs]
- lp-9015
Abstract
This LP specifies the Pasta curve pair — Pallas and Vesta — as an EVM precompile. The pair forms a 2-cycle: the base field of Pallas is the scalar field of Vesta, and vice versa. That single fact is the whole point. A proof verified over Pallas can be recursively proven over Vesta with no field emulation, and back again, so a proof of a proof of a proof costs no more per step than the first one. This is what makes incrementally verifiable computation (IVC) practical, and it is why Halo2, Zcash Orchard, and Nova/SuperNova are built on these curves.
Specification
Address
0x0500000000000000000000000000000000000008 — Hashing/Curves range.
Interface
The first byte selects the curve (0x01 = Pallas, 0x02 = Vesta); the
second byte selects the operation. Points are 64 bytes (x(32) + y(32));
scalars are 32 bytes.
0x01 PointAdd: P1(64) + P2(64) -> P3(64)
0x02 ScalarMul: P(64) + scalar(32) -> P*s(64)
0x03 MSM: n*(point(64) + scalar(32)) -> sum(64)
Both curves are short Weierstrass: y² = x³ + 5 over their respective prime fields.
| Curve | Field Modulus |
|---|---|
| Pallas | 2^254 + 0x224698fc094cf91b992d30ed00000001 |
| Vesta | 2^254 + 0x224698fc0994a8dd8c46eb2100000001 |
Read those two moduli next to each other and the cycle is visible: each is the other curve's group order.
Gas Schedule
| Operation | Gas |
|---|---|
| PointAdd | 2,500 |
| ScalarMul | 8,000 |
| MSM (base) | 8,000 |
| MSM (per additional point) | 6,000 |
Security Considerations
- Both curves provide roughly 127-bit security. Not post-quantum.
- Points are validated on-curve; the point at infinity is encoded as (0, 0).
- The 2-cycle is a structural property, not a security property — it buys recursion efficiency, not extra hardness.
References
- S. Bowe, J. Grigg, D. Hopwood, The Pasta Curves for Halo 2 (2020)
- Source:
github.com/luxfi/precompile/pasta/
Copyright
Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.
Licensed under the MIT License.