BitShares Forum

Main => Technical Support => Topic started by: blahblah7up on October 26, 2014, 02:37:09 pm

Title: Cold Storage Technical Question
Post by: blahblah7up on October 26, 2014, 02:37:09 pm
I've been through the Wiki and understand it, but I would like to know if cold storage can be done without <account_name>.

Basically I am interested in using exclusively public and private keys.

Imagine the following:

I send funds to a public key which I generate using the Linux tool or with the client offline.  I hold the WIF private key for this public key.  This account is then NOT registered with an <account_name> on the blockchain.

If I later create a completely new wallet and try to import funds using the WIF private key will I have problems?  There are some sentences in the Wiki which lead me to believe this might be the case.
Title: Re: Cold Storage Technical Question
Post by: Riverhead on October 26, 2014, 02:38:38 pm
No account needed. If you have the private key you can create the account at time of import.
Title: Re: Cold Storage Technical Question
Post by: blahblah7up on October 26, 2014, 02:40:02 pm
Thanks for the quick reply Riverhead.

So my scenario will work then?
Title: Re: Cold Storage Technical Question
Post by: xeroc on October 26, 2014, 02:43:49 pm
you can do all of the instruction with a local account name instead of a registered one too ..

the local account name can be a totally different one when you chose to import your key again ..
however, when importing a private key for a non registered name you need to do it in a certain way

wallet_import_private_key WIF-KEY arbitraryName true

the last "true" tells the wallet to create a new account name (local) and use the private key as account key!! (this part is important -- use it as account key)

you will not be able to redeem your funds if you just add the private key to an existing account ... (due to TITAN)
Title: Re: Cold Storage Technical Question
Post by: Riverhead on October 26, 2014, 02:45:45 pm
I have tested your scenario with a BTSX and was able to reclaim it with just the private key on a brand new wallet. Once the key is imported you'll need to execute regenerate keys and rescan the blockchain. I think some of this is triggered automatically now. None the less; a WIF from the CLI key gen tool works fine. Though to be honest I have a pub/priv key created this way but I haven't had the stones to send large amounts of money to it yet. I know it works, I've tested it a few times...but...I don't know. It's a mental block.
Title: Re: Cold Storage Technical Question
Post by: blahblah7up on October 26, 2014, 02:49:02 pm
I have tested your scenario with a BTSX and was able to reclaim it with just the private key on a brand new wallet. Once the key is imported you'll need to execute regenerate keys and rescan the blockchain. I think some of this is triggered automatically now. None the less; a WIF from the CLI key gen tool works fine. Though to be honest I have a pub/priv key created this way but I haven't had the stones to send large amounts of money to it yet. I know it works, I've tested it a few times...but...I don't know. It's a mental block.

Yes, it's all very nerve-wracking.  :-X

Thanks for the test and confirmation.   +5%
Title: Re: Cold Storage Technical Question
Post by: xeroc on October 26, 2014, 02:56:42 pm
To be a 100% sure you scheme is working you could use an offline computer to check it out with small amounts fist ..

you can simply carry over the "chains" folder of the bitshares wallet to your offline computer and do a resync ..
Title: Re: Cold Storage Technical Question
Post by: Riverhead on October 26, 2014, 03:40:19 pm
To be a 100% sure you scheme is working you could use an offline computer to check it out with small amounts fist ..

you can simply carry over the "chains" folder of the bitshares wallet to your offline computer and do a resync ..

That's a great idea!