FOLLOW THE MECHANISM

  1. 1Data

    A specific sequence of bytes enters the function.

  2. 2Digest

    The function produces a repeatable fingerprint.

  3. 3Check

    Recompute and compare after a proposed change.

A conceptual sequence. Real implementations can add steps, intermediaries, and conditions.

A fingerprint with precise rules

A cryptographic hash function accepts bytes and produces a fixed-size digest. The same bytes always produce the same result. A useful security property is that finding a different input with the same digest should be computationally impractical. This is stronger than an ordinary checksum, which may detect accidental damage but need not resist deliberate manipulation. SHA-256 is one such function; cryptocurrencies do not all use the same hashing algorithm.

Why blocks point backwards

A block can include a hash of its parent. Altering the parent changes that fingerprint, so the existing child no longer points to the altered version. This makes tampering evident. It does not, by itself, stop someone rebuilding a whole chain of fingerprints. Consensus adds the rules and resources needed to decide which valid history participants accept. A hash chain alone is therefore not a complete cryptocurrency.

What a commitment can establish

If someone publishes a document hash before revealing the document, other people can later compare the revealed bytes with the earlier commitment. A tiny formatting change gives a different result. The comparison establishes consistency with those bytes, not authorship or factual accuracy. A hash of a fabricated reserve report remains a perfectly valid hash. To judge a financial claim, the evidence behind the document still matters.

Reading the demonstration

The block-chain demonstration intentionally compresses the system: it shows data, parent fingerprints and the effects of editing an earlier record. Real networks also serialize data precisely, check transactions, enforce consensus rules and communicate with peers. Short displayed fingerprints are visual labels, not the full security boundary. The important question is which bytes were committed to and who independently checks them, rather than whether a string merely looks complicated.

MAKE IT CONCRETE

An altered instruction

Illustrative example: change “send 5 units” to “send 6 units.” The fingerprint changes even though only one character changed. If the next record contains the old fingerprint, the link breaks. Recomputing all later fingerprints repairs the arithmetic links; a real network must still reject any invalid transaction or history that fails its consensus rules.

FAILURE PATHS & COMMON MISREADINGS

Where the model can break

TRY IT YOURSELF

Change one block. Follow the consequences.

Enable JavaScript to change the simulated inputs. The mechanism, model notes, and sources remain readable on this page.

Open the complete lab & model notes ↗

KEEP EXPLORING

Connect this idea

Part of a bigger story

← Back to all topicsBack to top ↑