Curves
The toy cycle
Every worked example on this site uses the following pair of curves. Each curve has prime order, and each curve's order equals the other curve's base field size. Solving discrete log on these curves takes a few dozen additions, so they demonstrate the arithmetic and provide no security.
| Curve | Equation | Base field | Number of points | Scalar field |
|---|---|---|---|---|
| 43 | ||||
| 31 |
Both curves have the form , and both field sizes are congruent to 1 modulo 3. The Pasta curves share these properties, which later chapters use for curve cycles and endoscalars.
The Pasta cycle
Ragu uses the Pasta curves, Pallas and Vesta, which also appear in Zcash's Orchard protocol. Both have the equation . Pallas is defined over and has points, while Vesta is defined over and has points, where and are primes of about 255 bits.