What Is Blockchain? How It Works Explained

A blockchain is a shared digital record book that thousands of independent computers keep identical copies of. Every new entry is grouped into a block, each block carries a cryptographic fingerprint of the one before it, and the whole network follows fixed rules for deciding what gets added next. No single company owns the record, no single computer controls it, and once an entry is written in, it is extremely hard to change or remove.
That combination is what made blockchain famous, and also what makes it widely misunderstood. It is not the same thing as Bitcoin, it is not a currency, and it is not a database that magically makes everything it records true. It is a way of keeping a shared record that people who do not trust each other can still agree on. This guide explains what a blockchain is, how one actually works, the different types, what it is used for, and where its limits lie.
The first application of blockchain technology was the cryptocurrency Bitcoin, created in 2008 by a person or group using the name Satoshi Nakamoto. The underlying ideas are older: researchers Stuart Haber and W. Scott Stornetta described a system for timestamping digital documents in the 1990s, work that later fed into how blockchains link records together. Since 2008 the same basic design has been reused for other cryptocurrencies, for tracking goods, and for running software that no single organisation controls.
What is in a block?
A block is a bundle of transaction records, and every block has three parts. First, the data itself: the details of the transactions the block records, such as who sent what to whom. Second, a hash, which is a cryptographic fingerprint that uniquely identifies that block. Third, the hash of the previous block, which ties the blocks together in order. That link is what makes it a chain.
The hash is the part that does the security work. A hash is produced by running the block's contents through a mathematical function, and even a tiny change to the contents produces a completely different hash. If someone tried to alter a transaction in an old block, that block's hash would change, and it would no longer match the fingerprint stored in the next block. The chain would break at that point, and the rest of the network would reject the altered copy. To rewrite history successfully, an attacker would have to change every block after the one they altered and convince the majority of the network to accept the new version.
How does a transaction get added?
A transaction moves through the same sequence on most blockchains, although the details differ from one network to another. First, the transaction is created and signed. A wallet builds a message, for example to move some coins from one address to another, and signs it with the owner's private key. The signature proves the sender controls the funds without revealing the key itself.
Second, the signed transaction is broadcast to the network. The computers that run the network, known as nodes, each hold a copy of the ledger. They check the signature and check that the funds have not already been spent, then pass the transaction on to other nodes. Valid transactions wait in a queue until they are picked up for a new block.
Third, the network agrees on the new block. The nodes use a set of rules called a consensus mechanism to decide which transactions are valid and who gets to add the next block. Once the network reaches agreement, the block is sealed with its hash and the fingerprint of the previous block, and every node updates its own copy of the ledger. From that point the transaction is part of the shared record.
Proof of work vs proof of stake
Consensus is where blockchains differ most, and the two commonest mechanisms work in very different ways. Proof of work was pioneered by Bitcoin. Nodes known as miners compete to solve complex cryptographic puzzles, and the first to find a valid answer gets to add the next block and earn a reward in new coins. It is deliberately resource-intensive: the work costs computing power and electricity, which makes it expensive for anyone to attack the network, but it also slows down the creation of new blocks and uses a great deal of energy.
Proof of stake takes a different approach. Instead of miners, the network has validators, chosen in part according to how much of the network's own currency they have locked up as a stake. Validators check and approve new blocks without the competitive puzzle-solving, so the process uses far less energy and is faster. The stake itself acts as the security deposit: a validator that approves fraudulent transactions risks losing it.
The best-known switch between the two happened on 15 September 2022, when Ethereum, the second-largest cryptocurrency network, moved from proof of work to proof of stake in an upgrade known as the Merge. The change cut the network's energy use by about 99.95 percent, according to the Ethereum Foundation's figures, and it showed that a large public blockchain could change its consensus mechanism without losing its history: every transaction recorded before the Merge remained intact.
Blockchain vs Bitcoin: what is the difference?
Blockchain and Bitcoin are closely related, but they are not the same thing. Bitcoin is a specific network and a specific currency. Blockchain is the technology that network runs on. Saying blockchain is Bitcoin would be like saying the internet is email: email was one of the first things the internet carried, but the network itself can carry far more.
A blockchain can record transactions about all kinds of assets, not just cryptocurrency. The same design that tracks who owns a bitcoin can track who owns a shipment of vaccines, a property title, or a digital artwork. Bitcoin's blockchain records movements of bitcoin. Ethereum's blockchain records movements of its currency, ether, and also runs programs called smart contracts. Other blockchains record entirely different things, from food supply chains to medical records.
What are the types of blockchain?
Not all blockchains work the same way. The main split is between permissionless blockchains, which anyone can join, and permissioned blockchains, which restrict who can take part. Within that split there are four main types.
| Type | Who can join | How it works | Example use |
| Public blockchain | Anyone, no permission needed | Open network, thousands of nodes validate transactions | Bitcoin, Ethereum |
| Private blockchain | Only approved members | One organisation controls access, faster validation | A company's internal records |
| Consortium blockchain | Approved members from several organisations | Several organisations run the network together | Banks settling payments between themselves |
| Hybrid blockchain | Mixed, some parts open and some restricted | Controlled by one entity but uses a public chain to validate some transactions | A business that wants privacy plus public verification |
Public blockchains are the most secure in one sense and the slowest in another. With thousands of nodes checking every transaction, they are very hard to tamper with, but reaching agreement takes time. Private blockchains are faster because fewer nodes need to agree, but they depend on trusting the organisation that runs them, which gives up much of the point of decentralisation. Consortium blockchains sit in between: more nodes than a private chain, but still a closed group, and coordinating several organisations with different systems can be difficult.
What is blockchain used for?
Cryptocurrencies are still the best-known use, but they are far from the only one. Supply chains use blockchain to track goods from origin to destination: IBM's blockchain work, for example, has been used to follow agricultural produce, vaccines and shipping containers, so that every party in the chain sees the same record of where a product has been. Because every participant holds the same ledger, there is no need for each company to keep reconciling its own separate records against everyone else's.
Smart contracts are another major use. A smart contract is a program stored on a blockchain that runs automatically when its conditions are met, for example releasing a payment when a delivery is confirmed. IBM lists smart contracts alongside the distributed ledger, immutable records and public key cryptography as one of the key features of blockchain technology. They remove the need for an intermediary to enforce the agreement, but they also carry a risk: a bug in the contract's code runs exactly as written, with no one to appeal to.
Voting has been tried too. Some counties in the United States have used a blockchain voting platform called Voatz in elections, but researchers at MIT reported serious security problems with it, finding that attackers could not only see how a voter was going to vote but could also tamper with the connection. It is a reminder that putting a vote on a blockchain does not by itself make the vote secret or secure.
What are the benefits of blockchain?
Where the design fits the problem, blockchain offers four clear benefits. The first is data immutability: once a transaction is recorded and confirmed by the network, it is extremely difficult to tamper with, which makes the stored record more trustworthy. The second is transparency: on a public blockchain, anyone can inspect the transactions, so it is easier to see what is actually happening. The third is decentralisation: because the data is stored in many places, there is no single point of failure and no central authority that can delete or rewrite the record on a whim. The fourth is ease of verification and auditing: the ledger is a time-stamped, agreed record, so checking a transaction's history is straightforward.
For businesses, IBM points to a related benefit: because all network members share one ledger, the time-consuming work of reconciling separate records disappears. Each transaction is recorded only once, and every participant sees the same version of events.
What are the risks and limits?
Blockchain also has real drawbacks, and they decide whether it is the right tool for a given job. The first is computing demand. Proof-of-work networks use large amounts of energy, and the environmental cost has been one of the most debated aspects of the technology. Proof of stake largely answers that concern, but not every network has switched.
The second is speed. The same mass validation that makes a large blockchain hard to attack also makes it slow: it takes time for a majority of nodes to agree before a new block can be added, so blockchains process far fewer transactions per second than a conventional payment system.
The third is privacy. The transparency of a public blockchain is a drawback for anyone who wants their transactions kept private, because the record is visible to everyone on the network. Private blockchains solve that by restricting access, but then they give up some of the openness that makes the technology distinctive.
The fourth is cost and complexity. Building and running a blockchain system is expensive, both to set up and to maintain, and the technology does not make sense for every business need. A shared spreadsheet or an ordinary database is cheaper and faster whenever the parties involved already trust each other or trust a single administrator.
There is also a limit that no blockchain can fix: the ledger can only record what it is given. If false information is entered, the blockchain will preserve that false information immutably. It guarantees the record has not been changed after the event, not that the event itself was honestly reported.
Is blockchain secure?
In one sense, yes: the data on a large public blockchain is very resistant to tampering, because changing it would require altering the hashes of most of the network. Cloudflare puts it plainly: to tamper with a blockchain successfully, an attacker would need to alter the hashes of 51 percent of the blocks in the chain, which is extremely difficult on a large network with millions of blocks.
In other senses, blockchain is not automatically secure. Blockchains have been attacked, and in many cases an attacker who controls a majority of the network's computing power could rewrite recent history. More commonly, the losses people associate with crypto have nothing to do with the chain itself: exchanges have been hacked, wallets have been emptied through phishing, and private keys have been lost. There is no password reset on a blockchain. If you lose the private key to a crypto wallet, the funds in it are effectively gone, because no administrator exists who can restore access.
Security also varies between blockchains. A large public network with thousands of validators is far harder to attack than a small private chain with a handful of nodes. The technology shares its key features across all blockchains, but the strength of the protection depends on the size of the network and the way it is built.
Frequently asked questions
Is blockchain the same as Bitcoin? No. Bitcoin is one cryptocurrency that runs on a blockchain. Blockchain is the underlying technology, and it can record many other kinds of transactions, from supply chain movements to smart contracts.
Can a blockchain record be changed or deleted? On a large public blockchain, practically no. Changing an old record would change its hash and break every link after it, and the network would reject the altered copy. On a small private blockchain, the organisation that runs it may be able to rewrite the record, which is why private chains offer weaker guarantees.
Who controls a blockchain? On a public blockchain, no one person or company is in charge. The rules are enforced by the software and by the agreement of the nodes. On a private or consortium blockchain, the organisation or group that runs it sets the rules and decides who may join.
Does blockchain use a lot of energy? It depends on the consensus mechanism. Proof-of-work networks such as Bitcoin use a great deal of electricity. Proof-of-stake networks use far less: Ethereum's switch to proof of stake in September 2022 cut its energy use by about 99.95 percent.
Do I need to understand blockchain to use cryptocurrency? No, but you should understand the parts that affect your money: transactions cannot be reversed, there is no customer service desk to recover a lost private key, and the price of the asset can fall as well as rise. The technology does not protect you from those risks.
Sources: Cloudflare, What is blockchain? How does blockchain work?; IBM Developer, Introduction to distributed ledgers. This article is general information about a technology, not financial advice.