ehn-dcc-development / ehn-sign-verify-python-trivial

Extremely minimal python implementation of the eHN-S protocol.
European Union Public License 1.2
76 stars 41 forks source link

AttributeError: 'bytes' object has no attribute 'encode' #14

Open zeroninjahack opened 2 years ago

zeroninjahack commented 2 years ago

when i run: echo '(my json code)' | python3 hc1_sign.py | python3 hc1_verify.py

I get two errors

1) Traceback (most recent call last): File "/Downloads/ehn-sign-verify-python-trivial/hc1_sign.py", line 149, in out = b'HC1:' + b45encode(out).encode('ascii') AttributeError: 'bytes' object has no attribute 'encode'

2) File "/Downloads/ehn-sign-verify-python-trivial/hc1_verify.py", line 153, in if (cin[0] == 0x78): IndexError: index out of range