Bitcoin Forum
June 13, 2024, 06:58:12 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to import bitcoin core wallet in other client(s)?  (Read 1842 times)
william3489 (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 11, 2017, 07:24:26 AM
 #1

Are there any good "light" (read: doesn't require downloading the blockchain and the space and time associated with that) wallets for mobile or desktop (or both)? That I can quickly and easily import a bitcoin core wallet into?  

If not, how can I most easily get a file or even a piece of paper that's storing the data I need to be able to quickly spend or trade bitcoins?

I want to store bitcoins offline, but if something happens in the market I want to be able to move them, spend them, trade them, etc. quickly.  Having to install a fresh bitcoin core client and wait for it to sync is not an option.

Thanks.
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
June 11, 2017, 11:32:34 AM
 #2

Are there any good "light" (read: doesn't require downloading the blockchain and the space and time associated with that) wallets for mobile or desktop (or both)?
Electrum is a great wallet IMHO.
That I can quickly and easily import a bitcoin core wallet into?  
No, the way Bitcoin Core stores the wallet file makes it incompatible with every light wallet that I know of.
If not, how can I most easily get a file or even a piece of paper that's storing the data I need to be able to quickly spend or trade bitcoins?
If your Bitcoin Core client has a HD seed that is generated with it, 0.13.0 onwards, you can dump the xpriv key out and store it safely. You can use the xpriv in various wallets. The main downside being that you cannot change the password of the wallet. Anything below 0.13.0, you have to backup the wallet.dat every 100 transactions.

If you are worried about the synchronization time, I would recommend you to just use Electrum. The seed is easy and it offers a rather good security for day to day use. I've trusted it with all my Bitcoins.


If you're in an emergency, you can still spend the coins before it synchronizes fully. You have to create a raw unsigned transaction and sign it using the client.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
william3489 (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 14, 2017, 10:18:17 AM
 #3


If your Bitcoin Core client has a HD seed that is generated with it, 0.13.0 onwards, you can dump the xpriv key out and store it safely. You can use the xpriv in various wallets. The main downside being that you cannot change the password of the wallet. Anything below 0.13.0, you have to backup the wallet.dat every 100 transactions.

So I can import the xpriv key into Electrum?

Thanks.
AGD
Legendary
*
Offline Offline

Activity: 2070
Merit: 1164


Keeper of the Private Key


View Profile
June 15, 2017, 06:58:14 AM
 #4

launch your bitcoin client
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase "your walletpassphrase here" 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock

This private key is easy to import in Electrum

Bitcoin is not a bubble, it's the pin!
+++ GPG Public key FFBD756C24B54962E6A772EA1C680D74DB714D40 +++ http://pgp.mit.edu/pks/lookup?op=get&search=0x1C680D74DB714D40
william3489 (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 15, 2017, 07:01:40 AM
 #5

launch your bitcoin client
click on 'help' in the menu bar (top right)
click on 'debug window'
select the 'console' tab
type: walletpassphrase "your walletpassphrase here" 600
type: dumpprivkey [your public key here]
this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
type: walletlock

This private key is easy to import in Electrum

You have to do this individually for each address?  How do I list all the addresses?   "Your public key" is the same as your bitcoin payment address right?   What does the 600 stand for? The timeout in seconds? 10 min?

Thanks.
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
June 15, 2017, 07:21:18 AM
 #6

You have to do this individually for each address?
Yes.
How do I list all the addresses?
In the console, you have to type
Code:
listaddressgroupings
. The command will list all your addresses, including the change address.
"Your public key" is the same as your bitcoin payment address right?
Yes. The address should start with 1 or 3.
What does the 600 stand for? The timeout in seconds? 10 min?

Thanks.
Yes. The amount of time the wallet will be unlocked for.

Even though this method will work, it can be rather tedious if you have hundred of addresses. You can try importing the xpriv into Electrum. I haven't done it myself however but I'm confident that it will work.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
kfj984f
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 16, 2017, 07:39:20 AM
 #7

I have a similar problem. I was using Bitcoin Core, but somehow a little while ago the chain got corrupted, and I then deleted it. I ain't downloading 100GB (I don't have the space for one).

I recently managed to use pywallet https://github.com/jackjack-jj/pywallet to export /something/ (JSON?), which includes private keys. The only trouble is, there are maybe hundreds of them? Many of them without associated bitcoin, but I've no way of telling which have bitcoin, and which don't.

Is there any software that I can import hundreds of private keys in at one time? (Preferably in the format that pywallet has exported.)

Format of the file that pywallet created looks similar to (with the xxxxxxx replaced by whatever the actual numbers are), and repeated lots of times:
    "bestblock": "xxxxxx",
    "ckey": [],
    "defaultkey": "xxxxxxx",
    "keys": [
        {
            "addr": "xxxxxxx",
            "compressed": true,
            "hexsec": "xxxxxxx",
            "private": "xxxxxxx",
            "pubkey": "xxxxxxx",
            "reserve": 1,
            "sec": "xxxxxxx",
            "secret": "xxxxxxx"
        }
kfj984f
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 16, 2017, 07:48:16 AM
 #8

And to answer my own question, if one has a list of private keys only, then one can use Electrum.
http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients

One should thus use another script to get just the private keys from the JSON file that pywallet generated, and then paste them into Electrum.

OK...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!