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

generate keys problem #41

Closed
adamast0r opened this issue Dec 6, 2023 · 0 comments
Closed

generate keys problem #41

adamast0r opened this issue Dec 6, 2023 · 0 comments

Comments

@adamast0r
Copy link

adamast0r commented Dec 6, 2023

I got this error when using python 3.9:

$ ./generate_keys.py

Traceback (most recent call last):
  File "/home/hugol/itags/FindMy/./generate_keys.py", line 28, in <module>
    priv_bytes = int.to_bytes(priv, 28)
TypeError: to_bytes() missing required argument 'byteorder' (pos 2)

A fix seems to be:
L28 priv_bytes = priv.to_bytes(28,'big')
L29 adv_bytes = adv.to_bytes(28,'big')

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

2 participants