-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
zimage
commented
May 15, 2013
- added unit tests for CKey
- added get_secret() and get_compressed() methods to CKey
- added constant to base58.py for private keys (wallet import format)
Added a constant to the base58 code for the private key version number
Overall impression: positive, would like to merge, have questions. |
oops. forgot to mention that in my commit. python3 doesn't have encode/decode, but does have hexilify. This change bled over from my debugging libssl problems on my mac. I thought python3 might make the get_secret code and generate(secret=) code work instead of segfaulting. It works on my linux box, though. |
Test vectors come from the BIP encryption with no compression and no ec multiply code works. encryption with compression does not
Any update on this PR? BIP38 is really important... |
Replaced encode('hex') with binascii.hexlify for python3 compatibility
Added a constant to the base58 code for the private key version number
Test vectors come from the BIP encryption with no compression and no ec multiply code works. encryption with compression does not
hex to WIF now uses CKey.get_secret(form=CKeyForm.BASE58)) instead of doing it manually. Added decryption test code for non-EC Multiply encryption
Conflicts: bitcoin/bip38.py bitcoin/tests/test_bip38.py
Why did you close this pr? |
My git skills are lacking. I was having a hard time merging the upstream changes into my fork, so I made a new fork from jgarzik's master and am merging in my changes. It's been 6 months since I did any bitcoin crypto code, so the finishing touches have been pretty slow-going. I have the non-EC-Multiply encrypt/decrypt working, and EC-multiply make-intermediate and decrypt are done. I'm still hunting down why my EC-Multiply encrypt isn't correct. Then I'll have to add the confirmation code generation. |
OK that's good to know another PR is coming. Just FYI @jgarzik is waiting on some pythonize stuff from @petertodd - if you need any help (with git) for example, give me a shout, and many thanks for working on this important addition to the bitcoin library. |