This question already has an answer here:

How can I take a bitcoin private key encoded in hex:


and convert it to the corresponding public key:


I am NOT looking for a program/tool that does this, but how to do this mathematically. If you can't find that out, you can also give a solution in python 3, which I can understand and convert to something mathematical

marked as duplicate by Jestin, Jimmy Song, Murch Jul 4 '16 at 14:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I'm voting to close since this is very similar to the other question, but what you want to be doing is scalar multiplication of the private key to the generator point using Elliptical Curve Cryptography. The curve parameters, including the generator point is defined in SECP256K1. The resulting x and y coordinates are encoded via SEC uncompressed format to get the public key.

Not the answer you're looking for? Browse other questions tagged or ask your own question.