updating the hash-computing function to use hex

This commit is contained in:
Gabriel mermelstein 2025-01-30 12:21:47 +02:00
parent 12a9ec96ca
commit 290acadb60
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -57,7 +57,7 @@ class StepsCommon:
ctx.update(base64.b64decode(msg["meta"]))
ctx.update(int(msg["timestamp"]).to_bytes(8, byteorder="big"))
hash_bytes = ctx.digest()
return base64.b64encode(hash_bytes).decode("utf-8")
return "0x" + hash_bytes.hex()
def get_time_list_pass(self):
ts_pass = [