biemster / FindMy

Query Apple's Find My network
293 stars 47 forks source link

generate keys problem #41

Closed adamast0r closed 1 day ago

adamast0r commented 9 months ago

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