LPsLux Proposals
Q-Chain
LP-4140

lp-4140-pasta-curves-pallas-and-vesta


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.

CurveField Modulus
Pallas2^254 + 0x224698fc094cf91b992d30ed00000001
Vesta2^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

OperationGas
PointAdd2,500
ScalarMul8,000
MSM (base)8,000
MSM (per additional point)6,000

Security Considerations

  1. Both curves provide roughly 127-bit security. Not post-quantum.
  2. Points are validated on-curve; the point at infinity is encoded as (0, 0).
  3. The 2-cycle is a structural property, not a security property — it buys recursion efficiency, not extra hardness.

References

Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.

Licensed under the MIT License.