is there any command line utility that can be used to do the secp256k1 calculation on a given hexadecimal number (private key) and print the result (public key) to stdout in compressed and/or uncompressed form. can this be done using openssl ?
bitgen can be used:
http://bitcoin-gen.org/Currently it will require two commands to get the information, but modifying the source to give all information at once is trivial.
It can run on a 32-bit machine and has low memory requirements.
For example:
$ bitgen hex 12312381273918273128937128912c3b1293cb712938cb12983cb192cb1289b3 info
Would give:
Wif : 5HxJGdttiqC6hd4wXyExr8Jmv6WugaCtZtteoT8MCj74fhanXrQ
Next:
$ bitgen info 5HxJGdttiqC6hd4wXyExr8Jmv6WugaCtZtteoT8MCj74fhanXrQ
Gives:
Public point :(6B4D16EF98953A36752D7A2776B5989ED8700B8F80ECAA1818F15E3EF31D1532
: E9B6F7C6BE1017AC8D0A733DD099CBBB3A0DAEC89514F50F57A4B0259ACC0F10)
Public key : 046B4D16EF98953A36752D7A2776B5989ED8700B8F80ECAA1818F15E3EF31D1532E9B6F7C6BE101
7AC8D0A733DD099CBBB3A0DAEC89514F50F57A4B0259ACC0F10