Bitcoin Forum
December 09, 2016, 06:06:32 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: cwallet - Lightweight wallet reader to extract address & private key pairs  (Read 2542 times)
onelineproof
Jr. Member
*
Offline Offline

Activity: 50


View Profile WWW
December 28, 2011, 11:48:18 PM
 #1

Video demo: http://youtu.be/zZ63A-asD20?hd=1
Github: https://github.com/piratelinux/cwallet
Download: https://github.com/piratelinux/cwallet/tarball/master

<p xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
  <a rel="license"
     href="http://creativecommons.org/publicdomain/zero/1.0/">
    <img src="http://i.creativecommons.org/p/zero/1.0/80x15.png" style="border-style: none;" alt="CC0" />
  </a>
  <br />
  To the extent possible under law,
  <a rel="dct:publisher"
     href="https://github.com/piratelinux/cwallet">
    <span property="dct:title">Andrew K</span></a>
  has waived all copyright and related or neighboring rights to
  <span property="dct:title">Cwallet</span>.
This work is published from:
<span property="vcard:Country" datatype="dct:ISO3166"
      content="CA" about="https://github.com/piratelinux/cwallet">
  Canada</span>.
</p>

Version: 0.1

Dependencies:

- libgtk2.0-dev
- libdb4.8-dev (May need to manually change this if your wallet is created with a different version)
- libssl-dev
- qrencode
- convert (ImageMagick)

To compile cwallet (command line version):

cd src
(set the INCLUDES and LIBS variables to be used in the makefile)
export INCLUDES
export LIBS
make -f makefile.static

To compile cwallet-gui (graphical version):

./configure
make

To run cwallet:

cd src
./cwallet

To run cwaller-gui:

(make sure both cwallet and cwallet-gui are compiled)
cd src
./cwallet-gui

Options for command line version:

-w WALLET_FILE (defaults to ~/.bitcoin/wallet.dat)

-d WORKING_DIRECTORY (defaults to directory the program is called from)

-a ADDRESS (if not specified, all addresses are listed)

-q (produce pdf file of private key QR coded)

-o OUTPUT_FILE (file to save the pdf with QR encoding, defaults to WORKING_DIRECTORY/ADDRESS.pdf)

Example:

./cwallet -qa 1PkQCQmcyHR3gEPoBVLEchkVRYr5928Ko5

Note:

The program will output each address and private key in Bitcoin's base58 format. It will also check to make sure that the private key correctly corresponds to the address by performing a multiplication in Elliptic Curve space.


The program is written in C and has minimal dependencies. I did it mainly so that I can create a backup of my wallet in paper form. As a bonus it checks if my keys are corrupted. Also, I will soon include it in another project I'm working on (Pirate Linux). I cross checked with pywallet and it gives the same results. I did however notice that sometimes private keys are 31 bytes instead of 32. My program prints out "INVALID-KEY" if this is the case, but I can easily change that. Pywallet treats the 31 byte keys as if they were 32 bytes, but then the private key it produces isn't really a private key and there may be issues with importing those back into a wallet. Suggestions are welcome.

Pirate Linux developer: https://piratelinux.org
Cwallet developer: https://github.com/piratelinux/cwallet
Donate: 1proofgtqF9JJ26ZCYatkvWfpJE8bDYxa
1481263592
Hero Member
*
Offline Offline

Posts: 1481263592

View Profile Personal Message (Offline)

Ignore
1481263592
Reply with quote  #2

1481263592
Report to moderator
1481263592
Hero Member
*
Offline Offline

Posts: 1481263592

View Profile Personal Message (Offline)

Ignore
1481263592
Reply with quote  #2

1481263592
Report to moderator
1481263592
Hero Member
*
Offline Offline

Posts: 1481263592

View Profile Personal Message (Offline)

Ignore
1481263592
Reply with quote  #2

1481263592
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481263592
Hero Member
*
Offline Offline

Posts: 1481263592

View Profile Personal Message (Offline)

Ignore
1481263592
Reply with quote  #2

1481263592
Report to moderator
1481263592
Hero Member
*
Offline Offline

Posts: 1481263592

View Profile Personal Message (Offline)

Ignore
1481263592
Reply with quote  #2

1481263592
Report to moderator
onelineproof
Jr. Member
*
Offline Offline

Activity: 50


View Profile WWW
January 04, 2012, 01:55:56 AM
 #2

UPDATE: New features including a graphical interface. See top post.

Pirate Linux developer: https://piratelinux.org
Cwallet developer: https://github.com/piratelinux/cwallet
Donate: 1proofgtqF9JJ26ZCYatkvWfpJE8bDYxa
deepceleron
Legendary
*
Offline Offline

Activity: 1470



View Profile WWW
January 24, 2012, 01:30:22 PM
 #3

You should license under MIT or Berkeley license, there's no such thing as simply saying something is public domain and then it is.

onelineproof
Jr. Member
*
Offline Offline

Activity: 50


View Profile WWW
January 24, 2012, 08:53:55 PM
 #4

I did CC0

Better?

Pirate Linux developer: https://piratelinux.org
Cwallet developer: https://github.com/piratelinux/cwallet
Donate: 1proofgtqF9JJ26ZCYatkvWfpJE8bDYxa
arronlee
Newbie
*
Offline Offline

Activity: 12


View Profile
January 24, 2016, 04:55:35 AM
 #5

Hi, onelineproof.
I was a little confused by your words. Did you want to look for suggestion about
pdf extraction or QR decoder?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!