Author Topic: create_account_with_brain_key doesn't give owner private key  (Read 1511 times)

0 Members and 1 Guest are viewing this topic.

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
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: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
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?
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true