Blockchain technology · · 6 min read
What is blockchain? The basic logic of a chain of blocks
A blockchain is a shared ledger, kept simultaneously on many computers, in which transactions are grouped into blocks and each block is linked to the previous one by a mathematical fingerprint. No single party owns the ledger, and quietly changing an old entry is extremely hard, because altering one line means altering every block that came after it and most of the copies on the network.
This structure sits underneath cryptocurrencies such as Bitcoin and Ethereum. In this article we unpack it step by step using a simple bookkeeping analogy, and we separate what it does well from what it cannot do.
The idea of a shared ledger
Think about your bank account. Your balance lives in the bank's own database, and you accept that record as correct because you trust the bank. The record exists in one place, and one institution has the power to change it.
A blockchain flips that arrangement. Instead of one master copy, every computer that joins the network (a node) holds a full copy of the ledger. A new entry is added to everyone's copy once it has been checked against the network's shared rules.
A simple analogy: five friends record their shared expenses in a notebook, and each of them holds an identical copy. When one of them wants to write "Sam paid me $20", the others check it; if it is approved, everyone adds the same line to their own notebook. If one person secretly edits the past in their copy, the other four copies contradict them.
The core problem this solves is double spending: copying a digital unit of value and sending it to two different people at once. A shared ledger prevents this by putting transactions in a single order that everyone accepts.
How blocks and the chain are formed
Transactions are not written to the ledger one by one but in batches. Each batch is a block. Roughly speaking, a block contains a set of transactions, a timestamp and the fingerprint of the previous block.
That fingerprint is called a hash. A hash function turns any piece of data into a fixed-length string of characters; change even a single letter of the input and the output becomes completely different.
This is what creates the chain. Say block 100 carries the hash of block 99. If someone alters a transaction in block 90, the hash of block 90 changes. Block 91 still points to the old hash, so the link breaks. The forger would have to rebuild every block from 91 to 100 and then convince the rest of the network to accept the rewritten version.
A transaction usually makes its way onto the chain like this:
- The user signs the transaction with their private key (a secret number known only to its owner).
- The transaction is broadcast and reaches the nodes.
- Nodes check that the signature is valid and that the sender has enough balance.
- Valid transactions are added to a new block.
- The block is announced; other nodes verify it and append it to their own copies.
Who decides: the consensus mechanism
If thousands of computers keep the same ledger, how is it decided who writes the next block? The set of rules that settles this is called a consensus mechanism. There are two common approaches:
- Proof of Work (PoW): Participants called miners spend large amounts of computing power and energy trying to solve a puzzle. Whoever solves it first writes the block and earns a reward. Bitcoin uses this method and produces a block roughly every 10 minutes on average.
- Proof of Stake (PoS): Validators lock up the network's coins as collateral. The right to produce blocks is tied to that stake, and a validator that breaks the rules can lose part of it.
What both approaches have in common is that they make cheating expensive. Under Proof of Work, anyone trying to rewrite history must out-compute the entire honest network. Under Proof of Stake, they would have to put a very large amount of coins at risk. An attack is not impossible in theory, but on a large, widely distributed network its cost usually exceeds the expected gain.
Public and permissioned blockchains
Not every blockchain is open to everyone. The basic distinction looks like this:
| Feature | Public (permissionless) blockchain | Permissioned blockchain |
|---|---|---|
| Who can join | Anyone can run a node | Only invited organizations |
| Who validates | Any miner or validator following the rules | Pre-selected parties |
| Transparency | Transactions visible to everyone | Access is restricted |
| Typical use | Cryptocurrencies, decentralized applications | Record sharing between companies |
Bitcoin and Ethereum are examples of public blockchains. In permissioned systems, trust partly shifts back to the participating organizations, so weighing them on the same scale as open networks is misleading.
What blockchain solves and what it does not
Blockchain's strengths fit a particular kind of problem:
- Transferring value between strangers without an intermediary
- A transaction history that is very hard to change after the fact
- Records that anyone can audit independently
- Infrastructure that runs 24 hours a day, seven days a week
- Programs that enforce their own rules (smart contracts)
Its limits matter just as much:
- It does not verify the real world. If a company writes "this shipment is organic" to a chain, the blockchain shows that the record has not been changed since, but not that the original claim was true.
- Privacy is limited. On public chains addresses carry no names, but every transaction is visible. Once an address is linked to your identity, its history is exposed too.
- There is no undo. If you send funds to the wrong address, there is no customer service line to call.
- It can be slow and costly. Getting many copies to agree is naturally more expensive than writing to a single central database.
- The label is not a guarantee of quality. Calling a project "blockchain-based" does not make it sound, valuable or safe.
A practical test is this question: does the task require many parties who do not trust one another to agree on a shared record without relying on a single authority? If the answer is no, an ordinary database is often the better tool.
Key takeaways
- A blockchain is a shared ledger, kept on many computers, in which transactions are grouped into blocks linked to one another by hashes.
- Changing a past entry means rebuilding every later block and convincing most of the network.
- Consensus mechanisms (PoW, PoS) decide who writes the next block and make cheating expensive.
- A blockchain shows that a record has not changed, but it does not ensure that the information recorded was true.
- Not every problem needs a blockchain; its real value appears when a shared record must be kept without a trusted central party.