Bitcoin Forum
May 06, 2024, 06:24:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: help with importing pvt keys please  (Read 426 times)
btchelpme123 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
August 10, 2017, 12:40:54 PM
Last edit: August 10, 2017, 05:39:15 PM by achow101
 #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]
1715019867
Hero Member
*
Offline Offline

Posts: 1715019867

View Profile Personal Message (Offline)

Ignore
1715019867
Reply with quote  #2

1715019867
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
subSTRATA
Legendary
*
Offline Offline

Activity: 1288
Merit: 1043


:^)


View Profile
August 11, 2017, 12:01:30 AM
 #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.


theres nothing here. message me if you want to put something here.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 11, 2017, 12:09:15 AM
 #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

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Lionel
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
August 12, 2017, 07: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
subSTRATA
Legendary
*
Offline Offline

Activity: 1288
Merit: 1043


:^)


View Profile
August 12, 2017, 11: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://bitcointalk.org/index.php?topic=886599.msg9805886#msg9805886

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.

theres nothing here. message me if you want to put something here.
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!