BA-08 · LESSON 02

Proof of work

Mining searches header variations for a hash below the target, making history costly to extend and rewrite.

Key terms in this lesson 3 definitions
Proof-of-work target
The maximum header-hash value accepted for a block; lowering it makes valid hashes harder to find.
Hash rate
The number of mining hash attempts performed per second.
SHA-256
A cryptographic hash function used throughout Bitcoin to produce fixed-size 256-bit digests.
Self-paced Advanced Not started

Loading lesson visuals...

01

Learn the idea

Proof of work requires the numeric double-SHA-256 block-header hash to be less than or equal to a target. A lower target is harder because fewer of the 2^256 possible hash values qualify. Hash rate measures attempted hashes per second; it changes expected discovery time, not any individual hash's uniform probability.

GUIDED EXPLANATION1/5 ideas inspected
1

Decode the target

The header stores a compact representation called nBits. Nodes decode it and reject invalid or out-of-range targets.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinction“Miners solve increasingly complex mathematical equations as they approach a block.”

They repeatedly hash different headers. Previous failures do not move one candidate closer to success; each trial is another probabilistic search.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.