Blockchain Fundamentals — example repository
The minimal chain built across the series: block structure, hash linking, validation and a toy consensus loop, in one runnable project.
- TypeScript
- #blockchain
- #hashing
- #consensus
Episode 02
Postgres with an append-only audit table, every row signed, replicated to a standby, backed up hourly. That handles most of what people describe when they describe wanting a blockchain. It is faster, it is cheaper, your team already knows how to run it, and you can hire people who have done it before.
So the honest question is not "what can blockchain do". It is: what does that setup fail at, and does your situation actually hit that failure?
Take the signed-audit-log design seriously for a moment, because it is the real competitor.
That is a lot of the pitch, already. If you find yourself listing those four as reasons to adopt a chain, the design has not been examined closely enough.
Hash chains predate blockchain by decades
Linking records with hashes is a 1990s technique from secure timestamping. It was not invented for cryptocurrency and it is not what makes a blockchain a blockchain. The novel part is agreeing on the chain without a coordinator.
Here is what remains: whoever runs the database can still rewrite it.
Not undetectably — the signatures make edits visible. But they control the copy everyone reads from. They can drop a row and reissue signatures over the shortened history. They can refuse to serve a record. They can go offline. If the other parties want to prove what the record said last Tuesday, they are proving it against a copy the operator controls.
That is the gap. And it only matters if you cannot appoint an operator everyone accepts.
Before a chain earns what it costs, all four of these need to hold. Not most. All four.
Decision
When a blockchain is the right answer
1. More than one party writes to the record. One writer needs no consensus. It needs a database.
2. No party among them is acceptable as the authority. Not "we would prefer not to pick one" — genuinely unacceptable, because they are competitors, or because the regulator will not allow it, or because the parties are anonymous.
3. Disagreement is expensive. If a mismatch is resolved by two operations teams on a call, the machinery is not worth it. It is worth it when a mismatch means real money moves the wrong way.
4. Independent verification is required. Someone outside the operators has to be able to check the history without asking any of them for a copy.
Most proposals fail at condition two. A supply chain project with one dominant buyer and forty suppliers has an obvious authority: the buyer. They are already setting the terms. A chain does not change who has power in that relationship; it just makes the database slower.
Even then, go in with the price in view.
Trustless is a narrow claim
"Trustless" means the protocol does not require trusting a specific participant. It says nothing about the code, the key custody, the oracle feeding external data in, or the humans who can push an upgrade. Most real failures happen in those places, not in the consensus.
When someone proposes a chain, the useful response is not enthusiasm and not dismissal. It is four questions:
Clear answers to all four, and you have a real case. Vague answers to any, and what is actually wanted is a shared database with better access control — which is a good thing to want, and much easier to deliver.
That is not a dismissal of the technology. It is the only way to tell where it genuinely earns its place, which is what makes the cases where it does worth taking seriously.
With the why settled, the mechanism becomes much easier to follow. Episode three walks a transaction from the moment it is signed to the moment it is final.
Study materials
The minimal chain built across the series: block structure, hash linking, validation and a toy consensus loop, in one runnable project.
Condensed notes for the series: the vocabulary, the four conditions, the consensus comparison table and the questions to ask of any chain.
Continue learning
Follow one transaction from the moment it is signed to the moment it is final — keys, mempool, block assembly, validation and propagation, with nothing skipped.
In this series
BlockchainEpisode 03
Follow one transaction from the moment it is signed to the moment it is final — keys, mempool, block assembly, validation and propagation, with nothing skipped.
Start tutorial
Blockchain
Five proposals that come up repeatedly, why each one fails on inspection, and what the person asking for it usually actually needs.
Read
BlockchainEpisode 01
A practical introduction to blockchain — what the data structure actually is, why it exists, and how it changes the way a group of systems maintains a shared record.
Start tutorial