Fixed missing byteorder argument in stamp value calculation. Fixes #21.

This commit is contained in:
Mark Qvist 2024-10-13 13:08:10 +02:00
parent 36f0c17c8b
commit c9272c9218

View File

@ -27,7 +27,7 @@ def stamp_value(workblock, stamp):
value = 0
bits = 256
material = RNS.Identity.full_hash(workblock+stamp)
i = int.from_bytes(material)
i = int.from_bytes(material, byteorder="big")
while ((i & (1 << (bits - 1))) == 0):
i = (i << 1)
value += 1