@ -0,0 +1,13 @@
import hashlib
def check(data, proof, complexity=1, f=hashlib.sha256):
zeros="0"*complexity
hash=f(data+proof)
hashdata=hash.hexdigest()
b=0
for a in hashdata:
if a=="0":
b+=1
else:
break
return b>=complexity
The note is not visible to the blocked user.