In cryptography, a nonce is typically a random or pseudo-random value added to data before encryption or hashing to ensure that identical inputs produce different outputs.
In proof-of-work mining, miners adjust the nonce to find a valid block hash that meets the network’s difficulty target.
On Ethereum and other EVM-compatible chains, a transaction nonce is a sequential counter that orders transactions and prevents duplicates.
A nonce (short for “number used once”) is a value used in cryptographic processes to ensure that data or operations are unique and can’t be reused. In blockchain networks, nonces play a key role in both mining and transaction management, though they work differently depending on the context.
The goal is to produce a hash output that meets the network’s current difficulty target, typically meaning it must start with a specific number of leading zeros (that is, be below a target value). Since hash functions are unpredictable, miners can’t know in advance which nonce will produce a valid result. Instead, they cycle through possible values, starting at zero and incrementing, until they find one that works.
This valid nonce is sometimes informally called the “golden nonce.” Once found, the block is broadcast to the network, verified by nodes, and added to the blockchain. The difficulty of finding a valid nonce is what makes proof-of-work resistant to tampering: changing any part of a recorded block would require redoing the computational work for that block and all subsequent ones.
It’s worth noting that the nonce field in a Bitcoin block header is only 32 bits, allowing for roughly four billion possible values. When miners exhaust this range without finding a valid hash, they typically adjust other variables, such as the timestamp or an additional field known as the extraNonce, and begin cycling through values again.
Nonces are a foundational element of blockchain security. In proof-of-work mining, they make it computationally expensive to alter historical data. In transaction management, they can ensure each transaction is unique and processed as intended.
While both uses share a common origin, they serve distinct functions depending on the blockchain and context.
Decentralizuotas skaitmeninis registras, kuriame chronologine tvarka įrašoma informacija apie kriptovaliutą.
Skaitmeninė valiuta, apsaugota naudojant kriptografiją, kad veiktų kaip mainų priemonė vieno lygmens (P2P) ...
Bitkoinui alternatyvi kriptovaliuta. Vartojamas kriptovaliutoms, kurios nėra Bitkoinas, apibūdinti.