Bitcoin Forum
April 30, 2024, 09:53:16 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 18, 2013, 10:30:57 PM
 #21

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

sorry.  how do i actually install pywallet?  not used to navigating github.
1714470796
Hero Member
*
Offline Offline

Posts: 1714470796

View Profile Personal Message (Offline)

Ignore
1714470796
Reply with quote  #2

1714470796
Report to moderator
1714470796
Hero Member
*
Offline Offline

Posts: 1714470796

View Profile Personal Message (Offline)

Ignore
1714470796
Reply with quote  #2

1714470796
Report to moderator
1714470796
Hero Member
*
Offline Offline

Posts: 1714470796

View Profile Personal Message (Offline)

Ignore
1714470796
Reply with quote  #2

1714470796
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714470796
Hero Member
*
Offline Offline

Posts: 1714470796

View Profile Personal Message (Offline)

Ignore
1714470796
Reply with quote  #2

1714470796
Report to moderator
1714470796
Hero Member
*
Offline Offline

Posts: 1714470796

View Profile Personal Message (Offline)

Ignore
1714470796
Reply with quote  #2

1714470796
Report to moderator
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 10:34:13 PM
 #22

Oh yeah sorry
Code:
wget https://raw.github.com/jackjack-jj/pywallet/master/pywallet.py
in the directory you want to put pywallet in

In Github you can retrieve the raw file by clicking the 'Raw' button, top left of screen when you click on the file.

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, 11:07:28 PM
 #23

Oh yeah sorry
Code:
wget https://raw.github.com/jackjack-jj/pywallet/master/pywallet.py
in the directory you want to put pywallet in

In Github you can retrieve the raw file by clicking the 'Raw' button, top left of screen when you click on the file.

getting this:

Code:
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this

problem is i did do a bitcoind stop command.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 11:09:49 PM
 #24

Are you sure the directory and filename are correct?
Do you have the correct permissions? (maybe try sudo?)
Are you sure all the bitcoind/bitcoin-qt are closed? (run fuser on it)

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, 11:16:06 PM
 #25

Are you sure the directory and filename are correct?
Do you have the correct permissions? (maybe try sudo?)
Are you sure all the bitcoind/bitcoin-qt are closed? (run fuser on it)

i need to clarify something before going forward. 

i moved a copy of the wallet.dat in question to the desktop of this pc which is the wallet that i hope to dump the keys from.  will running pywallet effect any other wallet.dat on this computer?
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 11:27:21 PM
 #26

Nope, pywallet will only deal with files you provide to it
Also, dumping won't modify them

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, 11:54:16 PM
 #27

ok, i think i got it.

how do i identify the privkey?
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 18, 2013, 11:58:18 PM
 #28

The private key is the "hexsec" entry
If the wallet is encrypted you need to put the passphrase by adding ' --passphrase=PASSPHRASE' in the command line

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 19, 2013, 12:03:57 AM
 #29

The private key is the "hexsec" entry
If the wallet is encrypted you need to put the passphrase by adding ' --passphrase=PASSPHRASE' in the command line

you mean like?:

Code:
python pywallet.py --dumpwallet --datadir=/home/jj --wallet=walletzz.dat --passphrase=PASSPHRASE
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 19, 2013, 12:05:47 AM
 #30

Absolutely

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 19, 2013, 12:06:26 AM
 #31

Absolutely

how would i integrate a |less command?
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 19, 2013, 12:28:40 AM
 #32

unfortunately doesn't seem to have worked.

i got a huge dump and i see the address in the "names" list but not anywhere else with a hexsec  Sad
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 19, 2013, 06:41:59 PM
 #33

You see it in the "name" list but not in the "key" list??
I don't even know how that can happen. Except using the pywallet feature but you don't seem to used it.

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 19, 2013, 08:06:23 PM
 #34

You see it in the "name" list but not in the "key" list??
I don't even know how that can happen. Except using the pywallet feature but you don't seem to used it.

i ran pywallet just like you said in linux on the wallet in question and it only produced my vanitygen address in the "name" list w/o a hexsec but nowhere else in the key list above it.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 19, 2013, 08:15:39 PM
 #35

You see it in the "name" list but not in the "key" list??
I don't even know how that can happen. Except using the pywallet feature but you don't seem to used it.

i ran pywallet just like you said in linux on the wallet in question and it only produced my vanitygen address in the "name" list w/o a hexsec but nowhere else in the key list above it.

Do other addresses have hexsecs? Do you see this address in the first list (even without hexsec)?

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 19, 2013, 08:28:15 PM
 #36

You see it in the "name" list but not in the "key" list??
I don't even know how that can happen. Except using the pywallet feature but you don't seem to used it.

i ran pywallet just like you said in linux on the wallet in question and it only produced my vanitygen address in the "name" list w/o a hexsec but nowhere else in the key list above it.

Do other addresses have hexsecs? Do you see this address in the first list (even without hexsec)?

yes, all the other addresses have hexsecs and no the vanitygen address is not listed there.  only in the "names" list.
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 19, 2013, 08:29:46 PM
 #37

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?

Locate directory where bitcoin-qt.exe is, create shortcut for it and add commands listed above to it then start wallet using created shortcut. Do
not forget to remove commands from shortcut after you are done.

didn't work.

on a mac, it's not a *.exe, it's an *.app file.  and the term is alias, not shortcut.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 19, 2013, 08:30:56 PM
 #38

Then I'm sorry, I can't help you
AFAIK pywallet is the only tool that allows you to delete an address but it would have deleted the entry in "names" too anyway
I really don't see what happened here

If you definitely can't find it again, you should consider using pywallet's recovery feature

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 19, 2013, 08:32:36 PM
 #39

this is what i keep getting using -salvagewallet and -rescan on Mac itself:

Code:
13:27:42

walletpassphrase <passphrase> <timeout>
Stores the wallet decryption key in memory for <timeout> seconds. (code -1)


13:27:48

dumpprivkey 1cypherEucdwyZ8Xn84M8qUscjBXnWGZA


13:27:48

Private key for address 1cypherEucdwyZ8Xn84M8qUscjBXnWGZA is not known (code -4)
cypherdoc (OP)
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
July 19, 2013, 08:52:04 PM
 #40

Then I'm sorry, I can't help you
AFAIK pywallet is the only tool that allows you to delete an address but it would have deleted the entry in "names" too anyway
I really don't see what happened here

If you definitely can't find it again, you should consider using pywallet's recovery feature

remember that i used Armory's import key function which extracts the key out of Qt.  it appears that it does what it says it does and this is irreversible.
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!