Change pub_key and priv_key to y and x respectively