BitShares Forum

Main => Technical Support => Topic started by: abit on January 07, 2015, 02:29:36 pm

Title: Issues about dump_private_key and import_private_key and lost fund
Post by: abit on January 07, 2015, 02:29:36 pm
For those who lost fund after importing a private key, it may be interesting to check whether the owner key and the active key of the account are same.
While creating a new sub-account with current version of client (v0.4.27.2), the owner key and active_key are different by default. In this case, if one dump out the private key of the account and import it into another wallet, only the active key will be imported, as a result, something strange may happen.

Code: [Select]
>> wallet_account_create test.abit

"BTS5R1G2iBqAoKAKZCRfJgZA7us7N7xkvSaMwStnY1hkK52s42A56"

>> wallet_get_account test.abit

{
  "index": 52041,
  "id": 0,
  "name": "test.abit",
  "public_data": null,
  "owner_key": "BTS5R1G2iBqAoKAKZCRfJgZA7us7N7xkvSaMwStnY1hkK52s42A56",
  "active_key_history": [[
      "2015-01-07T13:40:53",
      "BTS5j2xL7jKjFprETK1suWfxGEux8gQcuheyaL9nytW9AHtzRDuUz"
    ]
  ],
...
}