From 290acadb608b3705a6f0c047aea29d4dc8602842 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Thu, 30 Jan 2025 12:21:47 +0200 Subject: [PATCH] updating the hash-computing function to use hex --- src/steps/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/common.py b/src/steps/common.py index f0943320..97c3a592 100644 --- a/src/steps/common.py +++ b/src/steps/common.py @@ -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 = [