BitShares Forum

Main => Technical Support => Topic started by: well.attenuated on October 14, 2015, 12:32:09 pm

Title: How to Restore Wallet from Brainkey?
Post by: well.attenuated on October 14, 2015, 12:32:09 pm
I have been playing with the Graphene Webwallet for a good day now but I cannot figure out to import a 2.0 wallet from Brainkey.
I made a wallet+ account, imported balances from 0.9, saved a backup file as well as the brainkey and cleared my cache.
I was able to restore from the backup file no problem but cant see how to alternately restore from the brainkey alone.
I tried making a new wallet with the (same) custom brainkey but it generated empty.
Is there something I am missing?
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on October 14, 2015, 12:36:42 pm
Do the docs over here maybe help you?
http://docs.bitshares.eu/migration/
Title: Re: How to Restore Wallet from Brainkey?
Post by: well.attenuated on October 14, 2015, 12:52:53 pm
It does not.
My issue is not migration from 0.9 to 2.0, that went smoothly.  I am trying to restore a 2.0 wallet from a 2.0 brainkey.
I have read through all the remaining documentation at docs.bitshares.eu but have found nothing pertaining to this action. 
The logical place to find this answer would be under the OpenLedger "Help" tab /Introduction/Backups but all this documentation is still missing.
I am compiling the full node now, maybe it will work there.
 
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on October 14, 2015, 01:33:12 pm
It does not.
My issue is not migration from 0.9 to 2.0, that went smoothly.  I am trying to restore a 2.0 wallet from a 2.0 brainkey.
I have read through all the remaining documentation at docs.bitshares.eu but have found nothing pertaining to this action. 
The logical place to find this answer would be under the OpenLedger "Help" tab /Introduction/Backups but all this documentation is still missing.
I am compiling the full node now, maybe it will work there.
 

you can't recover imported keys from the brain key .. that just doesn work technically ...
in fact .. importing your accounts is really like adding your account private keys next to the brain key .. they are independent ..
you need to store a full backup and not just the brain key

if you only used accounts that you have registered in the bts2 wallet .. then you would be good to go with only the brainkey
Title: Re: How to Restore Wallet from Brainkey?
Post by: well.attenuated on October 14, 2015, 02:12:10 pm
gotcha, that makes since.
Thanks
Title: Re: How to Restore Wallet from Brainkey?
Post by: m200 on December 13, 2015, 06:11:47 pm
Hello.

I am not sure >>

Can I recover my wallet with only  account name and  the brain key (without back up file ______.bin)?
If no, why should I use brain key instead of my password? How  brain key  is better/ different?
If yes, how exactly should I do that (recover funds)?

Thank you!
Title: Re: How to Restore Wallet from Brainkey?
Post by: 38PTSWarrior on December 13, 2015, 09:18:59 pm
Also interested!
#sharebits “m200“ 1 CHATEAUX
Title: Re: How to Restore Wallet from Brainkey?
Post by: btstip on December 13, 2015, 09:20:58 pm
Hey 38PTSWarrior, here are the results of your tips...
Curious about ShareBits? Visit us at http://sharebits.io and start tipping BTS on https://bitsharestalk.org/ today!
Source: https://bitsharestalk.org/index.php/topic,19013.msg266000/topicseen.html#msg266000
Created by hybridd (https://bitsharestalk.org/index.php?action=profile;u=40140)
Title: Re: How to Restore Wallet from Brainkey?
Post by: 38PTSWarrior on December 15, 2015, 08:01:07 pm
When I make a brainkey, can I then get lost in the jungle for 5 years, lose everything, and when I find the way out, get in the internet and have my balances?
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on December 16, 2015, 06:56:04 pm
When I make a brainkey, can I then get lost in the jungle for 5 years, lose everything, and when I find the way out, get in the internet and have my balances?
you can get the balance stored in the brain key's derived accounts.. so .. yes
Title: Re: How to Restore Wallet from Brainkey?
Post by: 38PTSWarrior on December 16, 2015, 09:32:49 pm
When I make a brainkey, can I then get lost in the jungle for 5 years, lose everything, and when I find the way out, get in the internet and have my balances?
you can get the balance stored in the brain key's derived accounts.. so .. yes
Derived accounts? So all I do is make a brain key and that's it? No downloading backup?
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on December 16, 2015, 09:49:08 pm
... unless you have manually imported private keys .. those CANNOT be recovered from the brainkey!
Title: Re: How to Restore Wallet from Brainkey?
Post by: m200 on December 19, 2015, 09:23:55 am
Hello.

Can you give us a detailed guide (Step by Step) on how to recover funds using only brain keys?

I have many doubts on how to do this properly and want to test this process.

Thank you!
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on December 19, 2015, 10:39:23 am
Click on settings
Click on wallet management console
Click 'new wallet'
Below the aubmit botton, click 'custom brain key'
Provide brainkey and a new passphrase for you wallet
submit form

Done :)
Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on January 25, 2016, 08:56:19 pm
I have a friend who's created an account on OL launch day roughly 3 months ago.  He has a password and what he's calling a seed (brain-key).  It's a 50-60 character string that he created himself using lastpass.

He's not been able to recover his account.

I've attempted to replicate his process by creating a new wallet and generating my own custom brainkey, all one word with 50 random characters.  The wallet creates just fine so I create an account in this wallet, It registers on the blockchain.  I then delete this wallet and try to recover using the brain-key I used to create it.

I then create a new wallet using the same brain-key I generated the first time but after the wallet is created it does not contain the account I created before.

What am I missing?
Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on January 25, 2016, 09:13:36 pm
Strange.  I did the exact same process 3 times and it didn't work.  On the 4th time the account shows up.

Also I ran into an issue with pasting the brainkey into the field.  On OL webwallet its not possible to paste anything.  In the light wallet there is no right click paste available but Ctrl v works most of the time.  Some times it does not.  On the times it does not work, its also not possible to type anything in this box. 

Title: Re: How to Restore Wallet from Brainkey?
Post by: abit on January 26, 2016, 08:55:51 am
Strange.  I did the exact same process 3 times and it didn't work.  On the 4th time the account shows up.

Also I ran into an issue with pasting the brainkey into the field.  On OL webwallet its not possible to paste anything.  In the light wallet there is no right click paste available but Ctrl v works most of the time.  Some times it does not.  On the times it does not work, its also not possible to type anything in this box.
Maybe it's just a bit laggy..
Try more times? On a new computer?
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on January 26, 2016, 11:56:46 am
do you use ascii characters or anything other than that?

in the wallet, the brain key is normalized which means, every whitespace is replaced by a simple space and spaces at the edge are (AFAIR) removed.
Any string should work just fine here ..

Not sure if it is an issue of the witness node to identify accounts from the generated public keys
Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on January 26, 2016, 12:00:04 pm
I just tried with brain key
   oj6Jahf6aM0wah0queMaebii4Ooteew8eis7tieJai3ieThoRo   
in the public testnet.. and it worked nicely. Try it yourself on http://testnet.bitshares.eu
Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on January 26, 2016, 05:40:35 pm
I just tried with brain key
   oj6Jahf6aM0wah0queMaebii4Ooteew8eis7tieJai3ieThoRo   
in the public testnet.. and it worked nicely. Try it yourself on http://testnet.bitshares.eu

right, I was able to do the same thing.  It was just weird that it didn't work the first 3 times.  Also discovered the pasting issue on OL and the occasional locking up on the lite-client.

I havn't heard back from the guy I was helping but it looks like he should be fine.

Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on January 28, 2016, 07:11:40 pm
It didn't work for him.  :(  Has something changed since launch in the way wallets are created using custom brain keys?

he has shared with me the seed he used and I've tried everything I can think of.  It's all numbers and letters and does not contain any special characters.  It does contain a mix of upper and lower case letters.  I noticed the normalize_brain_key function.  does this mean there is a possibility that lowercase could cause errors?

Also is there a CLI function to restore a wallet from brain key?  I've found create account from brain key, but nothing for a wallet.

Title: Re: How to Restore Wallet from Brainkey?
Post by: abit on January 30, 2016, 12:38:49 pm
It didn't work for him.  :(  Has something changed since launch in the way wallets are created using custom brain keys?

he has shared with me the seed he used and I've tried everything I can think of.  It's all numbers and letters and does not contain any special characters.  It does contain a mix of upper and lower case letters.  I noticed the normalize_brain_key function.  does this mean there is a possibility that lowercase could cause errors?

Also is there a CLI function to restore a wallet from brain key?  I've found create account from brain key, but nothing for a wallet.
Afaik when creating STEALTH addresses there need to input a brain key. Don't know if it's the same though.
Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on January 31, 2016, 01:56:34 am
I've got another issue now with brain keys that may be a related problem.

I've got an account I created 4 months ago around the launch of OL. 
I have access to the account, no problem in the light-wallet.

If I want to backup the brain key, It is not possible.
I select backup brain key, enter my password, it shows me the brain key, I copy this and click verify.
In pasting the brain key back in, tells me "Brainkey does not match, keep going..."

I've enter the key with copy/paste and also completely manually and it makes no difference.  It will not verify the brain key.

I've created a new account and it also will not let me verify the brain key. 

[UPDATE]
Woah!  I just tried to create a brain key on a completely different wallet in the webwallet and I got the *exact* same brain key as I got on the light client for a completely different wallet.

Something is definitely wrong here.


Title: Re: How to Restore Wallet from Brainkey?
Post by: xeroc on February 01, 2016, 08:51:17 am
I've got another issue now with brain keys that may be a related problem.

I've got an account I created 4 months ago around the launch of OL. 
I have access to the account, no problem in the light-wallet.

If I want to backup the brain key, It is not possible.
I select backup brain key, enter my password, it shows me the brain key, I copy this and click verify.
In pasting the brain key back in, tells me "Brainkey does not match, keep going..."

I've enter the key with copy/paste and also completely manually and it makes no difference.  It will not verify the brain key.
I have tried this on openledger using chrome and it worked all fine.
could you try copy paste it to a text editor and compare the copied
words one by one?

Quote
I've created a new account and it also will not let me verify the brain key. 

[UPDATE]
Woah!  I just tried to create a brain key on a completely different wallet in the webwallet and I got the *exact* same brain key as I got on the light client for a completely different wallet.

Something is definitely wrong here.
I also checked this and can't reproduce the issue.

Are you using the light client or a hosted wallet?
Title: Re: How to Restore Wallet from Brainkey?
Post by: Xeldal on February 03, 2016, 04:54:23 pm
I've got another issue now with brain keys that may be a related problem.

I've got an account I created 4 months ago around the launch of OL. 
I have access to the account, no problem in the light-wallet.

If I want to backup the brain key, It is not possible.
I select backup brain key, enter my password, it shows me the brain key, I copy this and click verify.
In pasting the brain key back in, tells me "Brainkey does not match, keep going..."

I've enter the key with copy/paste and also completely manually and it makes no difference.  It will not verify the brain key.
I have tried this on openledger using chrome and it worked all fine.
could you try copy paste it to a text editor and compare the copied
words one by one?

Quote
I've created a new account and it also will not let me verify the brain key. 

[UPDATE]
Woah!  I just tried to create a brain key on a completely different wallet in the webwallet and I got the *exact* same brain key as I got on the light client for a completely different wallet.

Something is definitely wrong here.
I also checked this and can't reproduce the issue.

Are you using the light client or a hosted wallet?

So for the issue with the same brainkey on webwallet and light-client, Im guessing I must have exported and imported a backup.  It wasn't obvious though because 1 wallet has 30 accounts and the other only has 1 account.   The one with 30 are all from 0.9 though so they wouldn't have shown up with the backup i used for light client.  false alarm, my mistake.

the issue of not being able to verify the backup is still present for me.  Strangely it now worked on the light-client but the same paste does not work on the web-wallet.  Before when I tried, it did not work in either place.

I'm using firefox.  I tried the same in chrome and it works fine.