From 51732f5e7d23ddae2ae399ebb2533440f535e31e Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 9 Oct 2023 20:22:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PoW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PoW.py b/PoW.py index 6a7ed3c..cb9c390 100644 --- a/PoW.py +++ b/PoW.py @@ -2,7 +2,7 @@ import hashlib def check(data, proof, complexity=1, f=hashlib.sha256): zeros="0"*complexity - hash=f((proof+data).encode()) + hash=f((str(proof)+data).encode()) hashdata=hash.hexdigest() b=0 for a in hashdata: