BitShares Forum

Main => Technical Support => Topic started by: mostar on October 14, 2015, 04:16:02 pm

Title: Import wallet to V2 CLI wallet
Post by: mostar on October 14, 2015, 04:16:02 pm
Hello,

I'm following this guide:
http://docs.bitshares.eu/migration/howto-importing-wallet.html
I export my Wallet using 0.9.3c and want to import it to CLI wallet.

Code: [Select]
import_accounts myexport.json mypass

Output:
Quote
10 assert_exception: Assert Exception
fc::sha512::hash( password_hash ) == imported_keys.password_checksum:
    {}
    th_a  wallet.cpp:2591 import_accounts

and
Code: [Select]
list_my_accounts

Output:
Quote
list_my_accounts
[]

What went wrong?

Other question
This guide mention that in order to claim the balances. One need to:
Code: [Select]
import_balance <account name> <private key> true

How can I extract my private key from the old version?

Thanks
Mostar

Title: Re: Import wallet to V2 CLI wallet
Post by: julian1 on October 15, 2015, 04:43:22 am
Hello,

I'm following this guide:
http://docs.bitshares.eu/migration/howto-importing-wallet.html
I export my Wallet using 0.9.3c and want to import it to CLI wallet.

Code: [Select]
import_accounts myexport.json mypass

Output:
Quote
10 assert_exception: Assert Exception
fc::sha512::hash( password_hash ) == imported_keys.password_checksum:
    {}
    th_a  wallet.cpp:2591 import_accounts

mypass must be the unlock password for the wallet that was exported as the myexport.json file.  The wallet that gets exported is the one that is currently open.

Have a look inside the json and make sure it contains the account names you expect.

I noticed I accidently triggered this exception when I forgot to open the wallet prior to exporting, and was then trying to enter the password for a different wallet.
Title: Re: Import wallet to V2 CLI wallet
Post by: julian1 on October 15, 2015, 04:52:03 am
Quote
Other question
This guide mention that in order to claim the balances. One need to:
Code: [Select]
import_balance <account name> <private key> true

I'm stuck with this - and it didn't work for me - but you can use wallet_dump_private_key owner accountname in 9.3. 
 
Title: Re: Import wallet to V2 CLI wallet
Post by: mostar on October 15, 2015, 11:12:32 am
Quote
I'm stuck with this - and it didn't work for me - but you can use wallet_dump_private_key owner accountname in 9.3. 

Now me allso, it give
Code: [Select]
null
Title: Re: Import wallet to V2 CLI wallet
Post by: betax on October 15, 2015, 01:22:15 pm
The way I do it, is by using:

import_key <accountname> <wif>

or you can use import accounts as on the op

later on go to the web ui and import the wallet, with all the keys. The balance will be reflected in the cli.


Title: Re: Import wallet to V2 CLI wallet
Post by: mostar on October 16, 2015, 09:04:39 am
Quote
later on go to the web ui and import the wallet, with all the keys. The balance will be reflected in the cli.

Did you mean web wallet of the light client?

My balance is fine in the web wallet. I didn't install the light client.
How do I share the account with the cli_wallet?