Bitcoin mining is a guessing search: miners repeatedly change a number in a candidate block and hash it with SHA-256 until the result is at or below a target, and only a block that meets the target can extend the chain.
Sources and checks
T2Bitcoin: A Peer-to-Peer Electronic Cash SystemPaper, says this directly
The proof-of-work involves scanning for a value that when hashed, such as with SHA-256, the hash begins with a number of zero bits.
Section 4, Proof-of-Work, first paragraph, read 2026-11-20
T1Bitcoin Core src/primitives/block.h, CBlockHeader class commentSource code, says this directly
and scan through nonce values to make the block's hash satisfy proof-of-work
CBlockHeader class comment, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/pow.cpp.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/pow.cpp | grep -nF 'if (UintToArith256(hash) > bnTarget)'Checked at block 976,753, 20 Nov 2026, 16:42 UTC: quotes 2/2, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-proof-of-work