After playing with ordinary equations, I moved on to elliptic curve equations.
Hint for beginners
- The goal is to find
secretsuch thatQ = secret * G. - This kind of problem is called the discrete logarithm problem on an elliptic curve.
- SageMath has functions for computing discrete logarithms.