send private key and public key, not in object