Bitcoin Forum
June 27, 2024, 07:23:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to convert ECKeys to WIF format?  (Read 894 times)
zipmaster (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
October 29, 2015, 12:45:17 AM
 #1

After backing up my private keys from the Android Bitcoin Wallet app (schildbach), I managed to export it to my laptop and decrypt it. I then proceeded to use bitcoinj to dump the raw keys onto a data file. My objective being to look at all the single private keys I own.

The raw dump lists the historical of all my transactions along with my wallet address strings followed by entries of the form:

ECKey{pub=..., priv=...}

How do I convert the priv ECKey to WIF format? I've been hanging my head on it for days now without getting anywhere.

Any help would be greatly appreciated.

Thanks!
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
October 29, 2015, 12:51:33 AM
 #2

Part of that ECKey line should have something like "priv WIF=..." which is the WIF key. If it isn't there, try upgrading bitcoinj to the latest version.

Otherwise, you can use this site: https://gobittest.appspot.com/PrivateKey and enter the privatekey hex. The site will give you the WIF version.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4680



View Profile
October 29, 2015, 04:20:46 AM
 #3

- snip -
you can use this site: https://gobittest.appspot.com/PrivateKey and enter the privatekey hex. The site will give you the WIF version.

Keep in mind that it is VERY RISKY to enter your private key on a website.  If anyone gains access to your private keys, they can AT ANY TIME NOW OR IN THE FUTURE spend any bitcoins that are received at the address associated with the private key.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
October 29, 2015, 06:52:18 AM
 #4

- snip -
you can use this site: https://gobittest.appspot.com/PrivateKey and enter the privatekey hex. The site will give you the WIF version.

Keep in mind that it is VERY RISKY to enter your private key on a website.  If anyone gains access to your private keys, they can AT ANY TIME NOW OR IN THE FUTURE spend any bitcoins that are received at the address associated with the private key.

Thus, you might want to do it yourself -> https://en.bitcoin.it/wiki/Wallet_import_format

Keep in mind that bitcoin's base58 encoding uses a different order (1-9,A-Z,a-z) than the "regular" base58 (1-9,a-z,A-Z) you might encounter or be familiar with.

Im not really here, its just your imagination.
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!