answered 4 years ago
G_1,G_2, k_1,k_2 do not look helpful as they are unrelated to the equation defining k.
What you need is .discrete_log() function -- see this page for documentation and examples.
.discrete_log()