Added ability to generate key pair from private key