Proof of Work
- Category
- Blockchain
- Level
- Professional
Simple definition
A rule that lets anyone add a block only after proving they spent real computation on it. Finding the proof is hard and random; checking it is instant.
Professional definition
A Sybil-resistance mechanism in which a block is valid only if its header hashes below a target, which can be met only by trying enormous numbers of nonces. Difficulty retargets so blocks arrive at the intended rate, and the chain carrying the most cumulative work is treated as canonical.
Technical definition
The hash function is treated as a random oracle, so each nonce is an independent trial and block discovery is a Poisson process with exponential waiting times. Security rests on an honest-majority assumption about hash power, not on a vote: an attacker with sufficient share can reorder or censor recent blocks, but cannot forge signatures or spend coins they do not control. Because the resource is rented energy, security is an ongoing expense rather than an accumulated stock.
Academic definition
A consensus mechanism that allocates the right to extend a distributed ledger in proportion to verifiable computational expenditure, making revision of recorded history costly in proportion to the work already embedded in the chain.
Mechanism
Because a valid hash can only be found by guessing, work cannot be faked or reused, and anyone can verify it in one operation. Rewriting a past block means out-producing the entire honest network from that height forward while it keeps extending the chain. The defence is that arithmetic of cost, which is also why security falls when the coin's price falls.
In practice
- Who uses it
- Miners and pool operators, protocol researchers comparing consensus designs, and risk teams setting confirmation requirements for deposits.
- Why it matters
- It makes writing to the ledger expensive and verification cheap, which is the trick that lets strangers share one history without an administrator.
- Limitations
- It proves computation was spent, nothing else. It does not prove who spent it, where, honestly, or that the data in a block is true.
Common mistakes
- Calling a high hash rate proof that a network is decentralised.
- Believing an attacker with majority hash power could steal coins from addresses.
- Treating recent blocks as final before enough work is stacked on them.
Examples
At difficulty 1, the expected number of hashes to find a block is about 4.29 billion. Difficulty is a multiplier on that figure, which is why expected work scales linearly with it while any single block arrives at a random time.
- difficulty D = 1
- hashes per unit of difficulty = 2^32 (Bitcoin's difficulty-1 convention)
- expected hashes per block = D x 2^32
- 1 x 4,294,967,296
An expectation, not a schedule. Inter-block times are exponentially distributed, so individual blocks can take far more or far fewer attempts.
An attacker with majority hash power can reorder recent blocks, exclude transactions, and double-spend their own coins. They cannot move coins from an address they lack the key for, because that is enforced by signatures, not by work.
Mathematical foundation
Variables
| T | Target threshold a block header hash must fall below | integer |
| N | Number of hash attempts needed to find a valid block | hashes |
| D | Difficulty: the target expressed as a multiple of the easiest allowed target | dimensionless |
Procedure
Count the fraction of the output space that lies below the target: that is the chance one attempt succeeds. Its reciprocal is the expected number of attempts. For Bitcoin, the same quantity is usually written as difficulty times the constant for the difficulty-one target.
Worked example
- D = 1
- constant for the difficulty-one target = 2^32
- E[N] = D x 2^32
- E[N] = 1 x 4,294,967,296
Interpretation
The result is an expected count of attempts, not a time and not a guarantee. Doubling the difficulty doubles expected work per block; the variance stays large, so short runs of very fast or very slow blocks are normal.
Assumptions
- The hash function behaves as a random oracle, so distinct nonces are independent trials. This is a modelling assumption about a standardised hash, not a proven property.
- The difficulty-times-2^32 form uses Bitcoin's difficulty-one target and therefore applies to Bitcoin and chains that copy that convention, not to proof-of-work generally.
- An honest majority of hash power is assumed to follow the protocol; the formula says nothing about whether that assumption holds.
- It gives expected attempts, not elapsed time; converting to time requires a hash rate, which is itself an estimate.
- Variance is high, so realised work for any one block is a poor estimate of the expectation.
- No part of the formula captures who owns the hardware, where it runs, or whether capacity is pooled.
Related terminology
Proof of Stake
Both solve the same problem — who may write the next block — with different scarce resources. Work is an external, consumed expense; stake is internal capital the protocol can confiscate.
Sources
bitcoin.org · 2008-10-31 · sections 4 and 11, proof-of-work and the attacker success calculation
https://bitcoin.org/bitcoin.pdf URL verified
NIST · specification of the SHA-2 family used as the mining hash
https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.180-4.pdf URL verified
Ethereum Foundation Developer Docs · comparison of the security assumptions of the two mechanisms
https://ethereum.org/developers/docs/consensus-mechanisms/pos/pos-vs-pow/ URL verified
O'Reilly · 2017 · chapter on mining, difficulty retargeting and consensus attacks
Print source
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
