added support for getting public key from a private key.

this is code that generates allows you to get public key x and y coordinates like we talked about on im