BitShares Forum

Main => Technical Support => Topic started by: maqifrnswa on November 02, 2015, 04:22:28 pm

Title: create_account_with_brain_key doesn't give owner private key
Post by: maqifrnswa on November 02, 2015, 04:22:28 pm
I used:
Code: [Select]
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?
Title: Re: create_account_with_brain_key doesn't give owner private key
Post by: maqifrnswa on November 02, 2015, 08:46:27 pm
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