Home
Writeups Misc About
Edwards Goes Degenerate

Edwards Goes Degenerate

There is a bug in the implementation, specifically

the function recover_x will always return 0, as the check is not done on modulo p. The challenge is now straightforward as the base point has a x-coordinate of 0. Indeed, and referencing from this paper, the scalar multiplication on Edwards curve of a point 0,y is:

k(0,y)=(0,yk)

therefore, we only need to solve the discrete logarithm over Fp. This can be done using Sage.

Sage Implementation: