What is a Nonce in Blockchain?
A number used once in cryptographic communication, often used in proof-of-work mining and to ensure transaction uniqueness.
Key details
- Mining
- In proof-of-work, miners change the nonce to get different hash results.
- Unique
- Ensures each transaction or block is unique.
- Security
- Helps prevent double-spending and replay attacks.
- Sequence
- In account-based models, it's used to ensure transaction order.
Examples
- 01In Bitcoin mining, changing the nonce to find a hash that meets difficulty requirements.
- 02Ethereum uses nonces to ensure the order of transactions from a single address.
- 03In cryptographic communication, nonces are used to prevent replay attacks.