Bitcoin Forum
May 11, 2024, 12:50:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What "--dumpwallet" do (pywallet) - i want i simple command to get my privat key  (Read 1636 times)
runback (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 20, 2015, 05:02:44 PM
 #1

hi

Please What "--dumpwallet" do in pywallet - i want i simple command to get my privat key using python only.

Thank you!
1715431832
Hero Member
*
Offline Offline

Posts: 1715431832

View Profile Personal Message (Offline)

Ignore
1715431832
Reply with quote  #2

1715431832
Report to moderator
1715431832
Hero Member
*
Offline Offline

Posts: 1715431832

View Profile Personal Message (Offline)

Ignore
1715431832
Reply with quote  #2

1715431832
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715431832
Hero Member
*
Offline Offline

Posts: 1715431832

View Profile Personal Message (Offline)

Ignore
1715431832
Reply with quote  #2

1715431832
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
July 20, 2015, 05:05:59 PM
 #2

hi

Please What "--dumpwallet" do in pywallet - i want i simple command to get my privat key using python only.

Thank you!
It returns the wallet in a human readable format. If it is unencrypted, you will find all of the addresses, including pregenerated ones, labeled and with their corresponding private keys.

runback (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 20, 2015, 05:09:47 PM
 #3

hi

Please What "--dumpwallet" do in pywallet - i want i simple command to get my privat key using python only.

Thank you!
It returns the wallet in a human readable format. If it is unencrypted, you will find all of the addresses, including pregenerated ones, labeled and with their corresponding private keys.


i can see my last transactions , but i cant see my private key please any more info sir ?
dothebeats
Legendary
*
Offline Offline

Activity: 3640
Merit: 1352


Cashback 15%


View Profile
July 20, 2015, 05:34:05 PM
 #4

Hmm I am not quite certain on how are you going to do that thing, but I found this thread: https://bitcointalk.org/index.php?topic=285947.0


.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
July 20, 2015, 05:37:28 PM
 #5

hi

Please What "--dumpwallet" do in pywallet - i want i simple command to get my privat key using python only.

Thank you!
It returns the wallet in a human readable format. If it is unencrypted, you will find all of the addresses, including pregenerated ones, labeled and with their corresponding private keys.


i can see my last transactions , but i cant see my private key please any more info sir ?
Transactions aren't stored in the wallet.dat, at least, I don't see any in mine.

If your wallet is unencrypted, you will see a lot of stuff like this (this is one for my testnet wallet
Code:
"addr": "mmLRgxXCSaRrmoXSo2sgGe2CQmo4cavdKU", 
            "compressed": true,
            "hexsec": "a7b36bd39f558ea03c415d2a522a0609caf2d014506fe9db921dc1064eb01ba3",
            "private": "3081d30201010420a7b36bd39f558ea03c415d2a522a0609caf2d014506fe9db921dc1064eb01ba3a08185308182020101302c06072a8648ce3d0101022100fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f300604010004010704210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798022100fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141020101a12403220003072a91ff1ebcb4bff0c8368afcfc0a01eed33716311a7cee3dcd5b43c057b55f",
            "pubkey": "03072a91ff1ebcb4bff0c8368afcfc0a01eed33716311a7cee3dcd5b43c057b55f",
            "reserve": 1,
            "sec": "cTCgz77r4BigUt4CVbW4MEWXTNJMm95caZX2TWc98icXsGTZUEss",
            "secret": "a7b36bd39f558ea03c415d2a522a0609caf2d014506fe9db921dc1064eb01ba301"
The part you care about is "sec" that is the key in Wallet Import Format. It should start with  5, K, or L. This one starts with c because it is testnet.

If the wallet is encrypted, you should see a bunch of stuff like this
Code:
"addr": "mgCepFFmwNiNSCGoGeZSG6U7eGRkzzwjWw", 
            "compressed": true,
            "encrypted_privkey": "e53d309fad405b3c2f3aca08658466ec6f33132cde378bae20d3d8af37949b444e17981f1223158dbac624f5e4b77333",
            "pubkey": "020188f460b3ba47dc0f4506e833140f672fd7e0e8a536458e33b39e8eeee6b933",
            "reserve": 1
Obviously encrypted privkey is your private key encrypted. You will need to use the --passphrase option and set your passphrase.

runback (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 20, 2015, 05:44:31 PM
 #6

Yes , Please is this the right command : pywallet.py --dumpwallet  Huh  or please give me a simple command thank you very much for your time  Smiley
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
July 20, 2015, 05:48:54 PM
 #7

Yes , Please is this the right command : pywallet.py --dumpwallet  Huh  or please give me a simple command thank you very much for your time  Smiley
The command I use is this:
Code:
python pywallet.py --dumpwallet > wallet.txt
This writes it out to a text file called wallet.txt located in the folder you have the command prompt open to.

If your wallet is encrypted:
Code:
python pywallet.py --dumpwallet --passphrase=PASSPHRASE > wallet.txt
where PASSPHRASE is your passphrase that you encrypted the wallet with. Again, it writes it to wallet.txt located in the folder you have the command prompt open to.

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!