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
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