From 6a4c6d3b7ecfacb7e489927244e7a3632add8e9c Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 9 Oct 2023 19:04:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20PoW.py?= 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 deb573d..1b29ed7 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(data+proof) + hash=f(proof+data) hashdata=hash.hexdigest() b=0 for a in hashdata: