create_account_with_brain_key doesn't give owner private key

Started by maqifrnswa, November 02, 2015, 04:22:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maqifrnswa

looking through the code, the private key is not saved to the wallet when you create an account.

I had to hack the wallet to get it:
I exposed "derive_private_key" in the wallet api
then added:
std::cout << key_to_wif(derived_key);
to the derive_private_key implementation in wallet.cpp

that allowed me to get the wif private key from a normalized brain key
maintains an Ubuntu PPA: [url="https://launchpad.net/~showard314/+archive/ubuntu/bitshares"]https://launchpad.net/~showard314/+archive/ubuntu/bitshares[/url] [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

maqifrnswa

I used:
create_account_with_brain_key "brian key" accountcreated registrar referrer true

my wallet has the memo and active private keys, but does not have the owner private key. Is this intended? I'd like to import that account in to another wallet, is this possible?
maintains an Ubuntu PPA: [url="https://launchpad.net/~showard314/+archive/ubuntu/bitshares"]https://launchpad.net/~showard314/+archive/ubuntu/bitshares[/url] [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true