I found the missing coefficients of an elliptic curve using comic book clues, confirmed a given point was on the curve, and performed scalar multiplication (27P) with an online ECC calculator to find the thief’s coordinates and get the flag.
The description talks about some detective finding a half-erased elliptic curve equation on the beach. The puzzle gives:
\[y^2 = x^3 + \underline{\quad}x + \underline{\quad} \pmod{373}\]Alongside this, there’s a point (7,39)
and the mysterious number 27
. There are also two cryptic clues about comics:
Quick comic trivia Google-search gave me:
Issue #7
10 cents
Now, the curve becomes:
\[y^2 = x^3 + 7x + 10 \pmod{373}\]Next, I quickly plugged the provided point (7,39)
into the equation just to be safe:
Since both sides are congruent modulo 373, the point (7, 39)
lies on the curve.
Nice it checks out!
The challenge explicitly provided the number 27
, hinting strongly that I needed to perform scalar multiplication (a common step in elliptic curve cryptography challenges). Now, elliptic curve scalar multiplication by hand can get messy fast. I found this cool online ECC calculator and punched in all the values:
The calculator spit out the answer instantly: \(27 \,\,× \,\,(7,39) = (42, 270)\)
jctfv{(42,270)}