entekhab.netentekhab.nettrilingual encyclopedia

Proof of Work

ENGLISHProof of Workreference
فارسیاثبات کارEstablished equivalent
کوردیسەلماندنی کارProposed equivalent — not standard
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

numeric

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.

Given
  • difficulty D = 1
  • hashes per unit of difficulty = 2^32 (Bitcoin's difficulty-1 convention)
Steps
  1. expected hashes per block = D x 2^32
  2. 1 x 4,294,967,296
about 4.29 x 10^9 hashes expected per block at difficulty 1

An expectation, not a schedule. Inter-block times are exponentially distributed, so individual blocks can take far more or far fewer attempts.

crypto

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

\Pr(\text{valid}) = \frac{T + 1}{2^{256}}, \qquad \mathbb{E}[N] = \frac{2^{256}}{T + 1} \approx D \times 2^{32}

Variables

TTarget threshold a block header hash must fall belowinteger
NNumber of hash attempts needed to find a valid blockhashes
DDifficulty: the target expressed as a multiple of the easiest allowed targetdimensionless

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

Given
  • D = 1
  • constant for the difficulty-one target = 2^32
Steps
  1. E[N] = D x 2^32
  2. E[N] = 1 x 4,294,967,296
E[N] = 4,294,967,296 hash attempts expected per block

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.
Limits of the formula
  • 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

related
Proof of Stake Hash Rate Blockchain Bitcoin Halving Mempool Private Key
Commonly confused with

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: A Peer-to-Peer Electronic Cash System
bitcoin.org · 2008-10-31 · sections 4 and 11, proof-of-work and the attacker success calculation
https://bitcoin.org/bitcoin.pdf URL verified
FIPS 180-4: Secure Hash Standard (SHS)
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
Proof-of-stake vs proof-of-work
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
Mastering Bitcoin, 2nd ed.
O'Reilly · 2017 · chapter on mining, difficulty retargeting and consensus attacks
Print source

Editorial status

Needs expert reviewconsensusv1.02026-11-03

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

Kurdish headword سەلماندنی کار is this project's coinage and needs native-expert review; the English term is retained alongside it. The random-oracle treatment of the hash is a standard modelling assumption, not a proven property of the standardised function, and is flagged as such in math.assumptions. The difficulty-times-2^32 identity is specific to Bitcoin's difficulty-one target.