A nonce is an arbitrary number usable just once in a cryptographic communication. Nonces are used in proof-of-work systems to vary cryptographic hash functions’ input. In certain PoW systems, miners compete to find a nonce that produces a hash with a value lower than or equal to that set by the network difficulty. Authentication protocols may use nonces to ensure that old communications cannot be reused in replay attacks.