Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echo "{'A': 1234}" | python3 hc1_sign.py | python3 hc1_verify.py #16

Open
barmosseri opened this issue Oct 29, 2021 · 5 comments
Open

Comments

@barmosseri
Copy link

Traceback (most recent call last):
  File "/root/Desktop/ehn-sign-verify-python-trivial/hc1_sign.py", line 85, in <module>
    payload = json.loads(payload.decode("utf-8"))
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
Traceback (most recent call last):
  File "/root/Desktop/ehn-sign-verify-python-trivial/hc1_verify.py", line 153, in <module>
    if (cin[0] == 0x78):
IndexError: index out of range

Any idea whats wrong?

@dirkx
Copy link
Member

dirkx commented Oct 29, 2021 via email

@Isacco00
Copy link

Isacco00 commented Dec 7, 2021

i have the same error

@lillois59
Copy link

@dirkx @barmosseri @Isacco00 try this cmd

    echo '{ "foo": "bar" }' | python3 hc1_sign.py

@okainov
Copy link

okainov commented Jan 19, 2022

@dirkx can you please either fix the readme or merge one of pending PRs which fix this issue? See #24 for example as the most recent one, also #3 was fixing this as well.

@dirkx
Copy link
Member

dirkx commented Jan 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants