samrushing / paper_key

standalone bitcoin paper key generator
3 stars 2 forks source link

Support compressed keys #3

Closed BlinkyStitt closed 10 years ago

BlinkyStitt commented 10 years ago

https://github.com/jgarzik/python-bitcoinlib/blob/master/bitcoin/key.py has support for both compressed and uncompressed keys. These have been the default in the Satoshi client since 0.6 and help keep the blockchain smaller.

samrushing commented 10 years ago

I've written the code, but in the process of testing it I've discovered that blockchain.info doesn't support compressed keys. That's unfortunate, because blockchain.info is really the best way to import a paper key. I may check the code in on a branch, and hopefully merge it later.

samrushing commented 10 years ago

Bryan, would you like to look over the code in the 'compressed' branch? Thanks!

samrushing commented 10 years ago

FYI, I've scanned the last 2000 blocks, counting key types. They're running neck and neck, about 832,830 compressed pubkeys and 825,859 uncompressed. blockchain.info needs to get their act together.

BlinkyStitt commented 10 years ago

Working great for me so far. All the keys have imported to electrum without issue. Thanks for this!