LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

How does point addition work on an elliptic curve, and what is the "double-and-add" algorithm?

To add points P and Q: draw a line through them, find where it intersects the curve at a third point R, then reflect R over the x-axis. This is the group operation. "Double-and-add" is the ECC equivalent of square-and-multiply.

Chord-and-tangent rule: the line through P and Q meets the curve at a third point R-prime, reflected over the x-axis to give R = P plus Q

* The line through P and Q hits the curve at a third point R′; reflecting R′ over the x-axis gives R = P + Q. Adding coordinates directly would land off the curve. *

Point addition (P + Q where P ≠ Q):

  1. Draw a line through P and Q
  2. The line intersects the curve at a third point $R'$
  3. Reflect $R'$ over the x-axis → $R = P + Q$

Point doubling (P + P = 2P):

  1. Draw the tangent line to the curve at P
  2. The tangent intersects the curve at $R'$
  3. Reflect → $R = 2P$

Special cases:

  • $P + \mathcal{O} = P$ (point at infinity is the identity)
  • $P + (-P) = \mathcal{O}$ (a point plus its reflection = infinity)

Double-and-add (analogous to square-and-multiply):

  • To compute $k \cdot P$ (scalar multiplication): express $k$ in binary, scan left to right
  • For each "0" bit: double the accumulator
  • For each "1" bit: double then add P
  • This computes $k \cdot P$ in $O(\log k)$ operations instead of $O(k)$

Tip: In ECC, "addition" replaces "multiplication" and "scalar multiplication" ($k \cdot P$) replaces "exponentiation" ($g^k$). The notation changes but the structure is identical to DH/ElGamal.

Go deeper:

From Quiz: KRYPTOG / Elliptic Curve Cryptography | Updated: Jul 14, 2026