def _derive_y_from_x(self, x, is_even):
curve = ecdsa.SECP256k1.curve<EOL>a, b, p = curve.a(), curve.b(), curve.p()<EOL>alpha = (pow(x, <NUM_LIT:3>, p) + a * x + b) % p<EOL>beta = ecdsa.numbertheory.square_root_mod_prime(alpha, p)<EOL>if (beta % <NUM_LIT:2>) == is_even:<EOL><INDENT>beta = p - beta<EOL><DEDENT>return beta<EOL>
Derive y point from x point