Mining proposes an order for valid transactions and proves costly work over an 80-byte block header. Full nodes independently decide whether the result follows every rule. This route connects block bytes, target encoding, retargeting, chain selection, issuance and attack boundaries.
14 connected lessons Practice in every lesson
01
See the whole system first
Each specialist lesson expands one relationship in this end-to-end map.
01
Template
A miner orders valid packages and creates the coinbase and commitments.
02
Header
Version, prior hash, Merkle root, time, nBits and nonce total 80 bytes.
03
Proof search
The header hash must be numerically less than or equal to the target.
04
Broadcast
The discovered block is only a proposal sent to peers.
05
Validation
Every full node checks proof, transactions, issuance, scripts and context.
06
Chain selection
Among valid branches, the node selects the one with most accumulated work.
You will be able to parse raw block and blk.dat bytes, verify proof of work, explain retargeting and issuance, and reason about reorg and majority-hash-power risks.
02
Run the mechanism here
Predict first, execute exact bytes or rules, then change one input and inspect the first failed boundary.
EXACT MECHANISM WORKBENCH
Validate proof of work and calculate a full retarget
Decode nBits into a 256-bit target, compare the displayed block hash as an integer, calculate target-derived work and difficulty, then apply Bitcoin's 2016-block retarget with the quarter-to-four-times timespan clamp and integer truncation.
Required cases complete: 0/3.
Choose an outcome, then execute the exact bytes or rule.
6 LIVE BITCOIN UTILITIES
Calculate blocks, mining, difficulty and consensus
Use real learner input rather than a prewritten answer. Every result is calculated locally from the fields shown and invalid data fails closed.
Bytes
Reverse Bytes
Reverse complete hexadecimal bytes without reversing the characters inside each byte.
Ready to calculate
Change any field, predict what should change, then run the utility.
Safety boundary: This learning surface does not store inputs. Never paste a live seed phrase, private key, wallet backup, or confidential transaction.
03
Follow the mechanism in order
Start at the top for a guided route, or open any lesson directly.