BitShares Forum

Main => Technical Support => Topic started by: clayop on March 03, 2015, 04:58:36 am

Title: How to use one account on two separated machine?
Post by: clayop on March 03, 2015, 04:58:36 am
I need to use one account on two machines (one GUI, one CLI). I imported master private key (dump public key shown in Keys tab). Then I tried to send fund to TITAN account but it only shows in one machine (I think...) How can I solve this? Send to address?
Title: Re: How to use one account on two separated machine?
Post by: abit on March 03, 2015, 07:21:05 am
I need to use one account on two machines (one GUI, one CLI). I imported master private key (dump public key shown in Keys tab). Then I tried to send fund to TITAN account but it only shows in one machine (I think...) How can I solve this? Send to address?
you imported the private key of active key, or private key of owner key? Maybe some issue related to this.. I had succeeded with importing both keys.
Title: Re: How to use one account on two separated machine?
Post by: fundomatic on March 03, 2015, 07:54:48 am
I occasionally run same wallet on different machines.

After some heavy use of one wallet/account,
the other wallet didn't reflect the changes anymore.

I guess, one wallet/account had generated more keys than the other wallet had.

To catch up with the other wallet, I had to
Code: [Select]
wallet_regenerate_keys <account_name> <number of keys to generate>
Depending on <number of keys to generate>, this can take some time.

then
Code: [Select]
rescan <block number from where to update the other wallet>

This wasn't the most pleasant experience. At the moment, I would suggest not using same wallet/account on separate devices (I wonder how it will work if I use 'public account' account instead of 'titan account').

Moreover, the wallet where I 'regenerated' the keys suggested moving funds to another wallet/account as it considered itself not safe to use (I don't remember the exact phrasing).
Title: Re: How to use one account on two separated machine?
Post by: clayop on March 03, 2015, 09:44:51 am
I need to use one account on two machines (one GUI, one CLI). I imported master private key (dump public key shown in Keys tab). Then I tried to send fund to TITAN account but it only shows in one machine (I think...) How can I solve this? Send to address?
you imported the private key of active key, or private key of owner key? Maybe some issue related to this.. I had succeeded with importing both keys.

Private key of owner key I guess. Thanks for your help :)
Title: Re: How to use one account on two separated machine?
Post by: monsterer on March 03, 2015, 11:34:27 am
Exactly which key does one need to export in order to get this to work?
Title: Re: How to use one account on two separated machine?
Post by: bytemaster on March 03, 2015, 02:11:49 pm
I suggest using the light wallet if you want 1 account on 2 machines.   
Title: Re: How to use one account on two separated machine?
Post by: xeroc on March 03, 2015, 04:45:58 pm
I need to use one account on two machines (one GUI, one CLI). I imported master private key (dump public key shown in Keys tab). Then I tried to send fund to TITAN account but it only shows in one machine (I think...) How can I solve this? Send to address?
you imported the private key of active key, or private key of owner key? Maybe some issue related to this.. I had succeeded with importing both keys.

Private key of owner key I guess. Thanks for your help :)

you only need to import the active key (and all private keys for older active keys if available) .. and I recommend to have a different active and owner key for security reasons ... if your active key is compromised you can still use your account name (tied to the owner key) and generate a new active key .. funds in the active key might be lost .. but the user name is not ... unless your owner key is stolen

Read more:
https://bitsharestalk.org/index.php?topic=14344.new#new
Title: Re: How to use one account on two separated machine?
Post by: vikram on March 03, 2015, 06:18:44 pm
I would not recommend this for normal usage.

If it is a registered account you can probably get away with it, but you need to make sure you import both your owner key and active key into both wallets.
Title: Re: How to use one account on two separated machine?
Post by: xeroc on March 03, 2015, 10:44:14 pm
I would not recommend this for normal usage.

If it is a registered account you can probably get away with it, but you need to make sure you import both your owner key and active key into both wallets.
Why both? Is there something wrong in my understanding above?
Title: Re: How to use one account on two separated machine?
Post by: vikram on March 03, 2015, 11:28:05 pm
I would not recommend this for normal usage.

If it is a registered account you can probably get away with it, but you need to make sure you import both your owner key and active key into both wallets.
Why both? Is there something wrong in my understanding above?

Nvm you are right--for normal usage you should only need to import your active key.
Title: Re: How to use one account on two separated machine?
Post by: cube on March 04, 2015, 07:30:07 am
I would not recommend this for normal usage.

If it is a registered account you can probably get away with it, but you need to make sure you import both your owner key and active key into both wallets.
Why both? Is there something wrong in my understanding above?

Nvm you are right--for normal usage you should only need to import your active key.

What is not 'normal usage'?  And how to import owner key?
Title: Re: How to use one account on two separated machine?
Post by: xeroc on March 04, 2015, 08:02:08 am
if you want to only handle funds and market with your account you are goos to go with only the active key ... if you want to register a new subaccount or want to change you public data field you are required to have your ownet key imported ..

Both can be imported with just wallet_import_private_key ..

They can be exported witg wallet_dump_account_private_key with the parameters owner_kry and active_key .. read the help to the command
Title: Re: How to use one account on two separated machine?
Post by: monsterer on March 04, 2015, 10:18:26 am
if you want to only handle funds and market with your account you are goos to go with only the active key ... if you want to register a new subaccount or want to change you public data field you are required to have your ownet key imported ..

Both can be imported with just wallet_import_private_key ..

They can be exported witg wallet_dump_account_private_key with the parameters owner_kry and active_key .. read the help to the command

But is storing only the owner key sufficient to maintain a backup?
Title: Re: How to use one account on two separated machine?
Post by: xeroc on March 04, 2015, 03:39:13 pm
Afaik yes .. unless you import privkeys from external sources ..
Title: Re: How to use one account on two separated machine?
Post by: vikram on March 04, 2015, 07:16:25 pm
Afaik yes .. unless you import privkeys from external sources ..

Note that external sources can also include genesis and vesting balances.

I would recommend sticking with the wallet JSON backups whenever possible, and only trying to regenerate childs keys if necessary.
Title: Re: How to use one account on two separated machine?
Post by: cube on March 04, 2015, 10:10:33 pm
Afaik yes .. unless you import privkeys from external sources ..

I am having accounts and subaccounts, with vesting balances on certain accounts. How best to have them on separate machines?
Title: Re: How to use one account on two separated machine?
Post by: abit on March 05, 2015, 01:45:46 am
Afaik yes .. unless you import privkeys from external sources ..

I am having accounts and subaccounts, with vesting balances on certain accounts. How best to have them on separate machines?
IMHO it's best to have a wallet which contains all your accounts (always create new account in this wallet), then export keys to other wallets for trading or running delegates.