1
Technical Discussion / Re: Wallets, so, many, wallets...
« on: November 22, 2013, 02:11:47 AM »
If you export your mobile wallet and copy that backup file to your desktop you can retrieve the private key pretty easily and import it into your Desktop client. The filename usually saves to /sdcard/Downloads/ and will have a file name similar to "goldcoin-wallet-keys-YYYY-MM-DD".
Once you have that file copied over to your desktop you will need to run it through openssl. If you do not have a copy of openssl and you are on Windows then you can download a standalone copy here:
https://code.google.com/p/openssl-for-windows/
Unzip openssl somewhere that it is easy for you to find again in the future (e.g. C:\Users\YourName\Desktop\openssl\). Now copy your saved wallet export from your phone and put it in C:\Users\YourName\Desktop\openssl\bin\ and run the following command from the command prompt:
Now copy the private key that is displayed on the screen (right click the command prompt, select Mark, highlight the wanted text, right click again, and choose copy). Once you have that private key copied down go into your desktop wallet and open the Debug window (You can find this in the Help menu). Select the Console tab and type the following commands into the text field:
NOTE: If your wallet is encrypted with a password you have to unlock it first. If your wallet is not encrypted you can skip ahead)
When the action is completed a line-break will appear in the console window and you're good to go!
Once you have that file copied over to your desktop you will need to run it through openssl. If you do not have a copy of openssl and you are on Windows then you can download a standalone copy here:
https://code.google.com/p/openssl-for-windows/
Unzip openssl somewhere that it is easy for you to find again in the future (e.g. C:\Users\YourName\Desktop\openssl\). Now copy your saved wallet export from your phone and put it in C:\Users\YourName\Desktop\openssl\bin\ and run the following command from the command prompt:
Code: [Select]
cd C:\Users\YourName\Desktop\openssl\bin\Code: [Select]
openssl enc -d -aes-256-cbc -a -in goldcoin-wallet-keys-YYYY-MM-DDNow copy the private key that is displayed on the screen (right click the command prompt, select Mark, highlight the wanted text, right click again, and choose copy). Once you have that private key copied down go into your desktop wallet and open the Debug window (You can find this in the Help menu). Select the Console tab and type the following commands into the text field:
NOTE: If your wallet is encrypted with a password you have to unlock it first. If your wallet is not encrypted you can skip ahead)
Code: [Select]
walletpassphrase YOUR_PASSWORD 120 (The 120 at the end is the timeout in seconds until your wallet locks again. You'll notice the little padlock in the main window is unlocked now)Code: [Select]
importprivkey PRIVATE_KEY_FROM_OPENSSL (replace PRIVATE_KEY_FROM_OPENSSL with private key you copied down).When the action is completed a line-break will appear in the console window and you're good to go!