This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, hashlib | |
# max nonces should scale with | |
# the difficulty, haven't calculated | |
# how to do that tho | |
max_nonces = 500000 | |
difficulty = 4 | |
pattern = '0' * difficulty | |
payload = f't={time.time()}&m=This is an example message!' | |
check_hash = b'' |