diff --git a/prover.py b/prover.py index cb4c647..0fde5b2 100755 --- a/prover.py +++ b/prover.py @@ -24,7 +24,7 @@ while len(STORED_NONCES) < common.ENTRIES_NUMBER: hashed = common.hash(protocolInitializationPhaseId + str(counter)) if common.doesHashMatchDifficulty(hashed): deltaCounter = counter - lastCounter - STORED_NONCES += [deltaCounter] + STORED_NONCES = [deltaCounter] + ([0] * (common.ENTRIES_NUMBER - 1)) lastCounter = counter print(len(STORED_NONCES), common.ENTRIES_NUMBER, file=sys.stderr) counter += 1
No dependencies set.
The note is not visible to the blocked user.
Attack by using identical nonceto Attack by using a nonce multiple times