def uncompress(payload):
payload = hexlify(payload)<EOL>even = payload[:<NUM_LIT:2>] == b"<STR_LIT>"<EOL>x = int(payload[<NUM_LIT:2>:], <NUM_LIT:16>)<EOL>beta = pow(int(x ** <NUM_LIT:3> + A * x + B), int((P + <NUM_LIT:1>) // <NUM_LIT:4>), int(P))<EOL>y = (P-beta) if even else beta<EOL>return x, y<EOL>
Given a compressed ec key in bytes, uncompress it using math and return (x, y)