Successfully returning both public and private keys from generation method.