bwesterb / py-seccure

SECCURE compatible Elliptic Curve cryptography in Python
GNU Lesser General Public License v3.0
94 stars 24 forks source link

Printing a public key doesn't work under Python3 #5

Closed jcea closed 11 years ago

jcea commented 11 years ago

Python 3.3.2 (default, May 24 2013, 01:11:46) [GCC 4.4.3] on linux Type "help", "copyright", "credits" or "license" for more information.

import seccure str(seccure.passphrase_to_pubkey(b'my private key')) '8W;>i^H0qi|J&$coR5MFpR*Vn' seccure.passphrase_to_pubkey(b'my private key') Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.3/site-packages/seccure/init.py", line 481, in repr return "<PubKey %s>" % unicode(self) NameError: global name 'unicode' is not defined a=seccure.passphrase_to_pubkey(b'my private key') a Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.3/site-packages/seccure/init.py", line 481, in repr return "<PubKey %s>" % unicode(self) NameError: global name 'unicode' is not defined

bwesterb commented 11 years ago

It was an issue with Pubkeys __repr__. I fixed it. Or at least: one problem.