Bitcoin Forum
November 17, 2024, 05:12:33 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: please help with xpvt key reward  (Read 383 times)
helpmemykey (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
May 16, 2018, 11:36:19 AM
 #1

hello im having a issue i have a few pvt keys i think there master keys or extended pvt keys im trying to import them into bitcoin core or anyother wallet with not much luck i need to be able to import a list in 1 go not 1 by one can anyone with bitcoincore try give it a go for me and see if it can be imported or tell me what type of key i have heres a empty key for testing i will give anyone who can solve this 50usd in btc thanks

test key

xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8 ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
May 16, 2018, 12:43:51 PM
Last edit: May 16, 2018, 01:02:30 PM by Xynerise
Merited by LoyceV (1)
 #2

Bitcoin Core does not have a way to directly import maser private keys.
You could derive a bunch of private keys in WIF from the xpriv and import them all at once, but you can't import the xprv directly.

Electrum does what you want easily:
Go to File -> New/Restore
Type a wallet name.
Select "standard wallet"
Click next
Select "use a master key"
Paste the xpriv
Click next
Set up a password for safety
Click next
Voila! Your addresses are there.
The first 20 addresses your xpriv creates are
Code:
192CfrTf5cxGSZX6AjLv6jikU4HVJRQ8bG
1N4sb4VR823iJB9vMThfu5puz1WtYUxdtD
1684T8iTTFdJz39LgzZLZ7428FaJzKmHp4
16TTQLQDkfV2iR5FpErvfvNBwkevY7hRS4
1HgXFVdr7XZAvWj74aaKmxDWe5EZziPp1
1DH4j4oSMPdNSw1WchbEVUXiqCZFGUjQqc
194ER44TQxokxoTU62pFdjfehrJ6fj1arG
1KGZ18FA3pSEH6ujou9tPrNZsyBALePg43
1Ar9dmRu5oaE8CDJVGVwTikwph1CJaGypF
14j7xd7vYnKDDit3wyBdESWbKTapAeoLSZ
1MZFw8r5Ve9pyddF5XzEBZHGxmCDs4E4cb
1DeRxFnivmqM3jyLdRhj8T8UWeWw2aKbhA
1Mczuhijuz8GZRU2HZbpv6p2nLYAA78aN3
1M1j5ZPivzqZhckNMsotomTD7QDAdsiWw2
12r2cBZLix2ekuuGEa9f2kCv3MsHWihvN7
18iprVoUt3LK48k7qDiwSNpbQLo9SRtnsY
1HAtDeCBcsW3oEThz4oq8mNRBKgZmAQGpp
1FbdkfdsTg5s1GX5GonSCChS68g9xeqDPw
1KQ6gUcb8PhU7xxKgpGBniyWVufDWmg2kP
1FwAoDDUo72rcWgkAZVxQ6GghUKfWP76f8
1Es4VZKew8EG68KS6hjgCVuePB7FW3Y4Zt

You can also use Mycelium wallet.
Copy the xpriv to the clipboard
On the accounts tab, select "add account"
Select "advanced" on the next screen
Type in your pin if you set one up
Click on clipboard to import the xpriv from the clipboard.
Enter an account label, and that's it.
helpmemykey (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
May 16, 2018, 02:01:32 PM
 #3

thanks but i have a few 100 wallets so need to do it in bulk how would i derive the keys thanks
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
May 16, 2018, 02:34:43 PM
 #4

thanks but i have a few 100 wallets so need to do it in bulk how would i derive the keys thanks
By wallets do you mean different master private keys or different addresses?
helpmemykey (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
May 16, 2018, 02:48:31 PM
 #5

master private keys i have like 300 of them i need to import them all in bulk or sweep them somehow
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
May 16, 2018, 03:17:49 PM
 #6

master private keys i have like 300 of them i need to import them all in bulk or sweep them somehow
Wow, that's a lot!
I doubt you'll be able to find a tool that does that unless you make one yourself since a master private key -- like a seed phrase -- derives many addresses and is meant to be used for a single wallet.
Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
May 16, 2018, 10:41:57 PM
 #7

thanks but i have a few 100 wallets so need to do it in bulk how would i derive the keys thanks
master private keys i have like 300 of them i need to import them all in bulk or sweep them somehow
what next? are you going to say 500 master keys in the next post?
the obvious question has not been asked here,
what exactly are you trying to do? why do you have so many xprv master keys?
if this is just your way trying your luck on finding some addresses with balance, just forget it... earn your btc!

if you insist you can try spam bc.info and most likely get banned doing it Grin
find the xpub then use bc.info API to find its balance, if it has balance then you can extract only the needed privkey
https://blockchain.info/balance?active=xpub6K2eySc3uCzitSjNVDTmT4Dmn2Vyjgt2cn836QuG7qJtHzFCzkRak59Wbruxrpa8Lbgjei6T3YdzeKhup9g7PgNn7sNATooh9QS3z8zMZFy
you can do single or multi xpubs at once but there is a limit on number request/sec, and remember the consequences

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
May 17, 2018, 06:17:30 AM
Merited by LoyceV (3)
 #8

You could always just use the linux version of Electrum and some scripting knowledge to create wallets programmatically...

Code:
./electrum -w <PATH/TO/WALLET/WALLETNAME> restore <XPRV>
This will create a wallet file at PATH/TO/WALLET/WALLETNAME restored from XPRV... for instance:
Code:
./electrum -w ~/wallet_1 restore xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW

Will generate a wallet file called "wallet_1" in the users home directory, restored using "xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8 ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW" which generates a wallet with addresses:
Code:
[
    "192CfrTf5cxGSZX6AjLv6jikU4HVJRQ8bG",
    "1N4sb4VR823iJB9vMThfu5puz1WtYUxdtD",
    "1684T8iTTFdJz39LgzZLZ7428FaJzKmHp4",
    "16TTQLQDkfV2iR5FpErvfvNBwkevY7hRS4",
    "1HgXFVdr7XZAvWj74aaKmxDWe5EZziPp1",
    "1DH4j4oSMPdNSw1WchbEVUXiqCZFGUjQqc",
    "194ER44TQxokxoTU62pFdjfehrJ6fj1arG",
    "1KGZ18FA3pSEH6ujou9tPrNZsyBALePg43",
    "1Ar9dmRu5oaE8CDJVGVwTikwph1CJaGypF",
    "14j7xd7vYnKDDit3wyBdESWbKTapAeoLSZ",
    "1MZFw8r5Ve9pyddF5XzEBZHGxmCDs4E4cb",
    "1DeRxFnivmqM3jyLdRhj8T8UWeWw2aKbhA",
    "1Mczuhijuz8GZRU2HZbpv6p2nLYAA78aN3",
    "1M1j5ZPivzqZhckNMsotomTD7QDAdsiWw2",
    "12r2cBZLix2ekuuGEa9f2kCv3MsHWihvN7",
    "18iprVoUt3LK48k7qDiwSNpbQLo9SRtnsY",
    "1HAtDeCBcsW3oEThz4oq8mNRBKgZmAQGpp",
    "1FbdkfdsTg5s1GX5GonSCChS68g9xeqDPw",
    "1KQ6gUcb8PhU7xxKgpGBniyWVufDWmg2kP",
    "1FwAoDDUo72rcWgkAZVxQ6GghUKfWP76f8",
    "18eT5RhvJYHsPaxJUKSS5BHkhdjGDRi6UU",
    "1PXWr8nvyG4kcHWanW4uQaySvphw54JHn6",
    "1LvnJjeumRf412cSycWp7MqYtbsvWCUBAC",
    "14jWqazewbjCcwGF6FwaqY3KkbKRgcSpaq",
    "1HEkbQBcEdpqQucsqpyjd2YJikBSr3KcwT",
    "1P5PBregiPdCANnDjE7cHgYweMWQWb3NAB"
]

You should be able to create a text file with one "xprv" per line, and pass those xprv's to the Electrum "restore" command using a shell script. This would create 300 wallets from your 300 master private keys...

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
nc50lc
Legendary
*
Online Online

Activity: 2604
Merit: 6416


Self-proclaimed Genius


View Profile
May 17, 2018, 08:18:10 AM
Last edit: May 17, 2018, 10:21:32 AM by nc50lc
 #9

test key

xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8 ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW
I see, your problem is: Every wallet you've used can't seem to import your master private key, right?
Use Electrum: electrum.org
I've tried your test key on Electrum and I think I found the culprit.

At first, it appears to be in the correct format while Electrum's next button is still unclickable, but I noticed that there was a hidden space somewhere between "nmK8" and "ppSV".
After removing the space, the restoration process went through.

here's a sample address from that test master private key: 192CfrTf5cxGSZX6AjLv6jikU4HVJRQ8bG
Signed by me:
Code:
-----BEGIN BITCOIN SIGNED MESSAGE-----
May 17 2018 nc50lc I am able to restore this sample wallet from helpmemykey's thread.
-----BEGIN SIGNATURE-----
192CfrTf5cxGSZX6AjLv6jikU4HVJRQ8bG
IIXEgwgF0NgDMqnOjJmpld5C3cB8MW58PDf1mwAQPYOxMVIfp8Ep4T0FDeQFIte6yM7pdeSbokKgl3L0nVeDkNc=
-----END BITCOIN SIGNED MESSAGE-----

It seems like the output file or text of the master private key dump of your previous wallet produces an invisible space.

Try to copy your other master prv keys to a text file, find a(the) space and delete it.
Copy the fixed master private key then, restore your wallet.
And here's an easy way to find where the space is: double-click the xprv key, the space should be after the highlighted characters.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
May 17, 2018, 09:06:56 AM
Last edit: May 17, 2018, 10:01:54 AM by HCP
 #10

... I've tried your test key on Electrum and I think I found the culprit.

At first, it appears to be in the correct format while Electrum's next button is still unclickable, but I noticed that there was a hidden space somewhere between "nmK8" and "ppSV".
After removing the space, the restoration process went through.
I think you'll find that the forum software does not allow single "words" larger than 79 characters... then it forces a "hidden" space.

This was put in without a space: xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8 ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW
Like this: 1234567890123456789012345678901234567890123456789012345678901234567890123456789 0123456789012345678901234567890

They will both have "hidden" spaces after the 79th character.

It's the reason a lot of "raw transaction" hexs that people attempt to paste into a post don't work... to exceed the 79char limit, you have to use [ code ][ /code ] tags... like this:
Code:
xprv9xyQEZakyfuyCRGF1moJNatpGDAgMS4hgctAgWU4RNw664qCz6agreZParHx6G24td48SZKnmK8ppSVMvmyBuTy9L4poDhwgm9aR9GukgQW
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Neither of those will have the "hidden" space

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3500
Merit: 17694


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 17, 2018, 09:29:11 AM
 #11

You could always just use the linux version of Electrum and some scripting knowledge to create wallets programmatically...
~
You should be able to create a text file with one "xprv" per line, and pass those xprv's to the Electrum "restore" command using a shell script. This would create 300 wallets from your 300 master private keys...
Bookmarked just in case I ever need it!

It's quite easy to script on Linux. If you only want to check the keys once, assuming all keys are in a file called "keylist", this should work:
Code:
#!/bin/bash
for key in `cat keylist`
do electrum -w ~/wallet_new restore $key # this creates the wallet and asks to set a password (just press Enter) ## command thanks to HCP
   electrum -w ~/wallet_new # this opens the wallet so you can check it's balance in the GUI, if it holds any balance, send it to your normal wallet
   rm wallet_new # this deletes the wallet again
done
It takes 10 seconds per loop, all you have to do is close Electrum when the wallet has no balance. For 300 wallets, you'll be done within an hour.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
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!