Author

Topic: help with importing pvt keys please (Read 452 times)

legendary
Activity: 1288
Merit: 1043
:^)
August 12, 2017, 06:19:21 PM
#5
So if you have 1548 private keys in a text file, one per each line, you can import this file with Electrum in one go.
Provided that each line has a WIF key and not other format

Is it possible with Bitcoin Core as well?

How about exporting? I want to export all of my keys in one go possibly in one file with one line per key.
Possibly WIF keys but that's not important, i may run a script that converts them to WIF
did some looking and found this:
https://bitcointalksearch.org/topic/m.9805886

If you have some text-edit finesse, you can turn a list of keys into a list of import commands. From another thread:

Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M addr-1DfyaDvr-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 addr-1DfyaDvr-2 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 addr-1DfyaDvr-3 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF addr-1DfyaDvr-4 false
Just make the final line "true" to reindex.

im not sure how the actual importing would go, but seems like you can work your way through it starting with this.
really though, if youre going to import 1500 keys use a light wallet. unless you set scan to false, its going to take an absurdly long time.
sr. member
Activity: 613
Merit: 305
August 12, 2017, 02:23:47 PM
#4
So if you have 1548 private keys in a text file, one per each line, you can import this file with Electrum in one go.
Provided that each line has a WIF key and not other format

Is it possible with Bitcoin Core as well?

How about exporting? I want to export all of my keys in one go possibly in one file with one line per key.
Possibly WIF keys but that's not important, i may run a script that converts them to WIF
HCP
legendary
Activity: 2086
Merit: 4361
August 10, 2017, 07:09:15 PM
#3
If they are xprv's... then you're looking at "extended private keys" of some description. These are generally used as the root to derive child keys in BIP32 wallets...each xprv has 232 children, so your "100 keys" are actually slightly more than that Wink

This is why Electrum will only let you import them one at a time, as it considers each one to be the starting point for a different HD wallet. To import multiples you'd need them to be in WIF format (ie. start with 5, K or L)

http://bip32.org/ might be your best bet to get from xprv to a WIF format private key... bit of a long process to convert them all 1 by 1... it's possible that some python wizardry using the bitcoin libraries would be able to take a list of xprv's and spit out matching keys.

Which wallet did these come from? I'm curious as to why you'd end up with 100 xprv's... instead of just "normal" WIF format keys?  Huh
legendary
Activity: 1288
Merit: 1043
:^)
August 10, 2017, 07:01:30 PM
#2
i have about 100 pvt keys from a few old wallets how can i import them all in 1 go i tryed electrum but can only do 1 at a time the keys are in this format

xprv[mod edit: remainder of private key removed]
if you're trying to import them into electrum there's no way around it, unless you mean you're importing one key at a time and then restarting the import process. just in case that is the case, you can copy and paste all your keys on separate lines and import all 100 in one go. it'll involve a lot of copy and paste, but I think that's what you're looking for, sorry if I'm wrong.

I would provide screenshots but im not able to at this time, so an example:
on the text input box, you would enter

key1
key2
etc.

newbie
Activity: 3
Merit: 0
August 10, 2017, 07:40:54 AM
#1
i have about 100 pvt keys from a few old wallets how can i import them all in 1 go i tryed electrum but can only do 1 at a time the keys are in this format

xprv[mod edit: remainder of private key removed]
Jump to: