first attempt at public key generation