Change private key to public key