Bitcoin Forum
April 26, 2024, 06:31:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 »  All
  Print  
Author Topic: Help: recover privkey after exporting from Qt?  (Read 4834 times)
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 17, 2013, 10:27:01 PM
 #1

is this possible after exporting from Bitcoin-qt?
1714113118
Hero Member
*
Offline Offline

Posts: 1714113118

View Profile Personal Message (Offline)

Ignore
1714113118
Reply with quote  #2

1714113118
Report to moderator
1714113118
Hero Member
*
Offline Offline

Posts: 1714113118

View Profile Personal Message (Offline)

Ignore
1714113118
Reply with quote  #2

1714113118
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
July 17, 2013, 10:39:24 PM
 #2

is this possible after exporting from Bitcoin-qt?

what do you mean exactly?
dumpprivkey only tells you the private key, doesn't delete it from your wallet, AFAIK.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 17, 2013, 10:51:24 PM
 #3

is this possible after exporting from Bitcoin-qt?

what do you mean exactly?
dumpprivkey only tells you the private key, doesn't delete it from your wallet, AFAIK.

well over a year ago, i used Armory to move my signature privkey from Qt into Armory.  i don't remember the exact sequence of commands i used to accomplish this but nonetheless i find only my pubkey remaining in Qt.

are there any remnants of the privkey in Qt or am i stuck?
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
July 17, 2013, 11:03:22 PM
 #4

Everything should be there.

To export a private key from your Satoshi bitcoin-qt client:

    1- launch your bitcoin client as usual and wait for it to load the blockchain and start up
    2- click on 'help' in the menu bar (top right)
    3- click on 'debug window'
    4- select the 'console' tab
    5- type: walletpassphrase "your walletpassphrase here" 600
    6- type: dumpprivkey [your public key here]
    7- this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
    8- type: walletlock

Skip steps 5 and 8 in case your wallet is not encrypted.

cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 17, 2013, 11:40:35 PM
 #5

Everything should be there.

To export a private key from your Satoshi bitcoin-qt client:

    1- launch your bitcoin client as usual and wait for it to load the blockchain and start up
    2- click on 'help' in the menu bar (top right)
    3- click on 'debug window'
    4- select the 'console' tab
    5- type: walletpassphrase "your walletpassphrase here" 600
    6- type: dumpprivkey [your public key here]
    7- this will return the private key, you can copy it now; ensure you clear your clipboard/history afterwards
    8- type: walletlock

Skip steps 5 and 8 in case your wallet is not encrypted.



sorry, already tried that:  Private key for address * not known (code -4)
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 02:28:42 AM
 #6

Make a wallet backup and then run Bitcoin-Qt with -salvagewallet command. If nothing happens try -rescan to check if wallet recognizes
transactions associated with address in question.

can you be a little more specific about the command lines involved and from what folder?
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
July 18, 2013, 08:46:36 AM
 #7

sorry, already tried that:  Private key for address * not known (code -4)

Are you sure you're trying the correct pubkey? Is the address you're trying to get the privkey from really yours? Didn't you grab it from the Address Book instead of from the Receive tab or something?


cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 04:01:56 PM
 #8

sorry, already tried that:  Private key for address * not known (code -4)

Are you sure you're trying the correct pubkey? Is the address you're trying to get the privkey from really yours? Didn't you grab it from the Address Book instead of from the Receive tab or something?




wait, in that series of instructions, was i supposed to insert the pubkey or the address?  if it is the latter, that is what i did.

and yes, this was my vanitygen address that i originally imported into this wallet but then subsequently exported to Armory.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 07:54:17 PM
 #9

If this definitely doesn't work you could try pywallet

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 08:03:41 PM
 #10

Make a wallet backup and then run Bitcoin-Qt with -salvagewallet command. If nothing happens try -rescan to check if wallet recognizes
transactions associated with address in question.

can you be a little more specific about the command lines involved and from what folder?

You need to run Bitcoin-Qt with commands added, e.g. bitcoin-qt.exe -salvagewallet and then eventualy bitcoin-qt.exe -rescan

and on a mac and from which directory?
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 08:04:16 PM
 #11

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 08:18:14 PM
 #12

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 08:19:17 PM
 #13

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

can you point me to a link for a mac?
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 08:23:42 PM
 #14

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

can you point me to a link for a mac?

As it's written in the link I just gave you (Wink), the instructions for Mac is in the README.
I never checked myself as I don't have a Mac, they come from an user.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 09:17:25 PM
 #15

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

can i simply move a copy of the wallet.dat over to a linux computer and then use pywallet to extract private keys?
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
July 18, 2013, 09:20:21 PM
 #16

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

can i simply move a copy of the wallet.dat over to a linux computer and then use pywallet to extract private keys?

Yes.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 10:02:29 PM
 #17

If this definitely doesn't work you could try pywallet

how would i do that?  never used it before.
On Linux it's really easy, it's a bit more complicated on Windows but still fairly simple.
Take a look at pywallet.tk and tell me if something seems strange/difficult.

is this download link working?  https://github.com/jackjack-jj/pywallet
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 10:03:42 PM
 #18

Yes

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 18, 2013, 10:08:58 PM
 #19

Yes

ok, i'm lost, how do i install it?   i'm now in linux and i've installed python, twisted, and bsddb.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 10:16:54 PM
 #20

Code:
python pywallet.py
should work and print help.

Then
Code:
python pywallet.py --dumpwallet --datadir=/home/jj --wallet=walletzz.dat
to dump /home/jj/walletzz.dat

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Pages: [1] 2 3 4 5 »  All
  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!