Compare commits

...
3 Commits
Author SHA1 Message Date
Mark Qvist 9ff76c0473 Updated version 2024-10-13 14:01:10 +02:00
Mark Qvist c9272c9218 Fixed missing byteorder argument in stamp value calculation. Fixes #21. 2024-10-13 13:08:10 +02:00
Mark Qvist 36f0c17c8b Added RNR_REFS field 2024-10-13 13:05:52 +02:00
3 changed files with 3 additions and 2 deletions

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ FIELD_RESULTS = 0x0A
FIELD_GROUP = 0x0B
FIELD_TICKET = 0x0C
FIELD_EVENT = 0x0D
FIELD_RNR_REFS = 0x0E
# For usecases such as including custom data structures,
# embedding or encapsulating other data types or protocols
+1 -1
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
+1 -1
View File
@@ -1 +1 @@
__version__ = "0.5.6"
__version__ = "0.5.7"