Level 1 · Explorer · chapter 12

12 A curve is a cloud of dots

Level 1 · Explorer. You will learn what the dots on the donut are, how to read a point’s card and the Inspector, and how many points a curve has. Read first: 11 Start here.

At school, a curve is a line you draw through the plane. The curves in this visualizer are different: their points are pairs of whole numbers (x, y), and only some pairs belong to the curve. So the curve is not a line at all. It is a cloud of separate dots.

Which pairs belong is decided by a rule such as y² = x³ + 7, worked out on a clock with p hours instead of on the number line: every number wraps around to 0 when it reaches p. 21 Clock arithmetic shows how to check the rule by hand. Here we only look at the result.

The visualizer can draw every dot when p is at most 262 144. The switch is All curve points in Display (key C); it is on for the toy-curve presets. For Bitcoin’s curve, where p has 78 digits, no computer could list the dots, so only the points you type are drawn.

Example 12.1 · Every point of y² = x³ + 7 over F₂₂₃

The preset “y² = x³ + 7 over F₂₂₃, Programming Bitcoin” uses p = 223, so both coordinates run from 0 to 222. F₂₂₃ (“F two hundred twenty-three”) is the name of that clock.

the F₂₂₃ curve: 251 dots on the torus, one of them, (78, 98), hovered with its card, and the Inspector listing its details

Open this view: every point of F₂₂₃

Do it yourself

  1. In Curve, pick the preset y² = x³ + 7 over F₂₂₃, Programming Bitcoin.
  2. In Display, turn off Guide rings and Chord construction (K).
  3. In the 3D view, hover the point (78, 98); its card stays until you hover another point.
  4. Read the Inspector section in the panel.

Look at:

Why: a dot’s card says where the dot is. The coloured points you type into the panel get more: the next examples show how to turn any dot into one of them.

Example 12.2 · Pin as many as you like

three dots of the F₂₂₃ curve pinned, each card with its own leader line

Open this view: F₂₂₃, three dots pinned

Do it yourself

  1. In Curve, pick the preset y² = x³ + 7 over F₂₂₃, Programming Bitcoin.
  2. In Display, turn off Guide rings and Chord construction (K).
  3. In the 3D view, click the point (78, 98), the point (183, 30) and the point (58, 70) to pin their cards.

Look at: three pinned cards, each with a thin leader line to its dot. Pinned cards follow the camera when you turn the donut, move out of each other’s way and avoid the legend and the flat map. When their dot goes behind the donut, the card fades.

Why: pinning is the way to compare several points. Each pinned card has four buttons: Fly to, Copy SEC, Use as P₁ and Use as P₂. Click a dot again, or its ✕, to unpin it; Esc drops the hover card first and then every pin.

Example 12.3 · Use as P₁: a dot’s order

Pin the dot (78, 98) and click Use as P₁ on its card. The button writes the dot into the P₁ field as (78, 98), exactly what you could type yourself.

the dot (78, 98) made into P₁: its pinned card now shows its order, 42, and still no k

Open this view: (78, 98) as P₁

Do it yourself

  1. In Curve, pick the preset y² = x³ + 7 over F₂₂₃, Programming Bitcoin.
  2. Type (78, 98) in P₁.
  3. In Display, turn off Guide rings and Chord construction (K).
  4. In the 3D view, click P₁ to pin its card.
  5. Read the Inspector section in the panel.

Look at: the card of P₁, now with an order row: its order, 42. There is still no k row.

Why: the order says how many times you can add the point to itself before you reach 𝒪 (28 Orders and subgroups). The k row would say which multiple of G the point is, but (78, 98) is not a multiple of G at all. G has order 21 here: its multiples are G, 2G and so on up to 20G, and the 21st is 𝒪 again. So only 20 of the 251 dots are multiples of G, and only those get a k.

Example 12.4 · A tiny curve: 18 dots and 𝒪

The preset “y² = x³ + 2x + 2 over F₁₇, Paar & Pelzl” is a textbook curve on a clock with only 17 hours. Here P₁ is the dot (7, 6).

y² = x³ + 2x + 2 over F₁₇: eighteen dots on the torus, and P₁ = (7, 6) pinned: its card says k = 9

Open this view: every point of F₁₇, P₁ = (7, 6)

Do it yourself

  1. In Curve, pick the preset y² = x³ + 2x + 2 over F₁₇, Paar & Pelzl.
  2. Type (7, 6) in P₁.
  3. In Display, turn off Guide rings and Chord construction (K).
  4. In the 3D view, click P₁ to pin its card.
  5. Read the Inspector section in the panel.

Look at:

Why: 19 is a prime number, and on a curve with a prime number of points every dot is a multiple of every other dot. So every dot here has a k between 1 and 18, and the visualizer finds it instantly. 29 Discrete logs on toy curves shows how, and why the same is impossible on Bitcoin’s curve.

Example 12.5 · A big cloud: 10 191 dots

y² = x³ + 7 over F₁₀₀₀₉: ten thousand dots cover the torus, one hovered

Open this view: every point of F₁₀₀₀₉

Do it yourself

  1. In Curve, pick the preset y² = x³ + 7 over F₁₀₀₀₉, dense and 6-fold symmetric.
  2. In Display, turn off Guide rings and Chord construction (K).
  3. In the 3D view, hover the point (3293, 4199); its card stays until you hover another point.
  4. Read the Inspector section in the panel.

Look at: the donut is covered: y² = x³ + 7 over F₁₀₀₀₉ has 10 192 points, so 10 191 dots. Hovering still works: the card of (3293, 4199) appears.

Why: even with this many dots, the cloud is not random. Enlarge the flat map (⤢): its top half is its bottom half flipped upside down, because every dot has a mirror image (15 Mirror images). And every row of the map, every value of y, holds either exactly three dots or none: 3397 rows hold three and the other 6612 are empty. 43 j = 0 and its automorphisms explains where the threes come from.

Try it yourself

Recap

Next: 13 Why a donut.