What Is Blockchain Technology? How It Works and Its Limits
A blockchain is a shared digital ledger, maintained across many computers with no central authority, where records are grouped into blocks and each block is cryptographically linked to the one before it. NIST describes blockchains as "tamper evident and tamper resistant", which is deliberately not the same as immutable.
Topic: Cloud Computing: AWS, Azure & GCP in IT Infrastructure · Explainer
Quick answer: A blockchain is a shared digital ledger, maintained across many computers with no central authority, where records are grouped into blocks and each block is cryptographically linked to the one before it. NIST describes blockchains as "tamper evident and tamper resistant", which is deliberately not the same as immutable. They suit a narrow set of problems: several parties who need one shared record and do not fully trust each other, with no obvious neutral party to hold it. For most other problems a database is better.
Key takeaways
- NIST's definition is "tamper evident and tamper resistant", not immutable. Section 7.1 of its overview says the immutability claim "is not strictly true".
- The chain links blocks by hash, so altering an old record breaks every block after it. That is what makes tampering evident.
- Consensus exists because there is no central authority to decide which version of the ledger is correct.
- A blockchain cannot verify that what it records is true. NIST calls this the oracle problem.
- If you have a trusted party, few participants, or need to delete data, use a database.
Topics covered in this guide: what a blockchain is, how blocks are chained, consensus, public and private networks, smart contracts, genuine use cases, the limitations NIST documents, when a database is the better choice, and what skills the work needs.
Table of Contents
- What Is Blockchain?
- How Does the Chain Actually Work?
- What Is Consensus and Why Is It Needed?
- What Is the Difference Between Public and Private Blockchains?
- What Are Smart Contracts?
- Is a Blockchain Really Immutable?
- What Are the Real Limitations?
- When Is a Database the Better Choice?
- What Are the Genuine Use Cases?
- What Skills Does Blockchain Work Require?
- How Do You Evaluate a Blockchain Proposal?
- References
What Is Blockchain?
The clearest definition available comes from NISTIR 8202, the US National Institute of Standards and Technology's overview of the technology, published in October 2018:
"Blockchains are tamper evident and tamper resistant digital ledgers implemented in a distributed fashion (i.e., without a central repository) and usually without a central authority (i.e., a bank, company, or government)."
Read the first four words carefully, because they are doing the work. Tamper evident means you can tell if someone changed the record. Tamper resistant means changing it is expensive and difficult. Neither word means impossible, and the difference matters more than any other point in this article.
NIST goes on to say what the arrangement achieves: it enables "a community of users to record transactions in a shared ledger within that community, such that under normal operation of the blockchain network no transaction can be changed once published". The qualifier "under normal operation" is also deliberate.
The same document is unusually direct about the hype: "There is hype around the use of blockchain technology, yet the technology is not well understood. It is not magical; it will not solve all problems."
How Does the Chain Actually Work?
Transactions are collected into a block. The block is hashed, and that hash is stored in the next block. Repeat, and you have a chain where every block commits to the entire history before it.
The property this creates is worth stating precisely. Changing one transaction in an old block changes that block's hash, which no longer matches the value recorded in the next block, which breaks the link, and so on to the end of the chain. An attacker must therefore redo every block after the one they altered, and do it faster than the rest of the network is adding new ones.
That is what "tamper evident" means in practice: the tampering is not prevented, it is made obvious and expensive. NIST notes the contrast with conventional systems directly, observing that unlike "traditional databases, transactions and values in a blockchain are not overridden".
What Is Consensus and Why Is It Needed?
Because nobody is in charge. Without a central authority, the network needs a rule for deciding which version of the ledger everyone accepts and who gets to add the next block.
| Model | Who may publish a block | Main cost |
|---|---|---|
| Proof of work | Whoever solves a cryptographic puzzle first | Energy and hardware |
| Proof of stake | Chosen in proportion to holdings committed | Capital, and concentration risk |
| Proof of authority | A known, approved set of publishers | Requires trusting those publishers |
| Round robin | Publishers take turns | Only workable among known participants |
The models NIST catalogues include proof of work, proof of stake, round robin, proof of authority, proof of identity and proof of elapsed time. Notice what the last four have in common: they all assume you know who the participants are. That assumption changes the design completely, and it is the real dividing line in the next section.
What Is the Difference Between Public and Private Blockchains?
A permissionless network lets anyone create an account and participate anonymously. NIST's point about why that matters: for such networks, the properties of the technology "deliver a level of trust amongst parties with no prior knowledge of one another", which can let individuals and organisations transact directly.
A permissioned network restricts who may read, write or publish. It is faster and cheaper, because it can use a consensus model that assumes known participants.
It also raises an obvious question that any serious evaluation has to answer. If you already know and have vetted every participant, and a small group controls publishing, what is the distributed ledger doing that a well-run shared database with good access controls and audit logging would not? There are valid answers, usually about not wanting any single participant to be able to rewrite history. But the question must be asked and answered rather than skipped.
What Are Smart Contracts?
A smart contract is, in Ethereum's own documentation, simply a program that runs on the chain. It is code stored on the blockchain that runs when conditions are met, with its execution verified by the network. It is neither smart nor a contract in the legal sense: it is a program whose behaviour everyone can inspect and nobody can quietly change.
Two consequences follow, and they pull in opposite directions. Because the code is on the chain and cannot be edited, no party can alter the terms after the fact. For the same reason, a bug in the code also cannot be edited, and it is a bug that everyone can read and anyone can exploit. Smart contract security is a specialism of its own because of that asymmetry.
Is a Blockchain Really Immutable?
No, and this is the most useful thing in NIST's report. Section 7.1 states it without hedging:
"Most publications on blockchain technology describe blockchain ledgers as being immutable. However, this is not strictly true. They are tamper evident and tamper resistant ... They cannot be considered completely immutable, because there are situations in which the blockchain can be modified."
The clearest of those situations is the most recent part of the chain. NIST explains that "the most recently published, or `tail' blocks are subject to being replaced (by a longer, alternative chain with different `tail' blocks)", because most networks treat "the longest chain (the one with the most amount of work put into it) as truth when there are multiple competing chains".
This is why exchanges and payment systems wait for confirmations rather than acting on a transaction the moment it appears. A transaction in the newest block is not settled; it is probably settled, and the probability rises as blocks are added on top. Anyone designing a process around a blockchain needs to decide how many confirmations their risk tolerance requires, and that decision is a business one.
What Are the Real Limitations?
NIST devotes a whole section to limitations and misconceptions. Four are worth carrying into any discussion.
It cannot tell whether what it records is true. This is the oracle problem, and NIST states it plainly: a blockchain "can be a place to record both human input data as well as sensor input data from the real world, but there may be no method to determine if the input data reflects real world events". Its own example is a purchase: "there is no way to determine within the blockchain network whether the shipment took place, without relying on outside sensor or human input." A supply chain on a blockchain still depends on a person scanning the right box.
A dying network stops being trustworthy. NIST's warning about abandoned chains: "A defunct blockchain would not be suitable for a historical record, since without many publishing nodes, a malicious user could easily overpower the few publishing nodes left and redo and replace any number of blocks." The security comes from the participants, so it leaves when they do.
It does not make a system secure. "The use of blockchain technology does not remove inherent cybersecurity risks that require thoughtful and proactive risk management." Key management, endpoint security, access control and the application around the chain all still matter, and most real losses have come from those rather than from breaking the chain itself.
Permanence cuts both ways. Records that cannot be changed also cannot be corrected or erased, which collides directly with data protection expectations about rectification and deletion. Personal data written to a chain is a decision that is difficult to reverse.
When Is a Database the Better Choice?
Most of the time. A blockchain is a reasonable answer when all of the following are true at once, and a poor one if any of them fails.
| Condition | If it does not hold |
|---|---|
| Several parties must write to one shared record | One writer means one database |
| They do not fully trust one another | Mutual trust means a shared database works |
| No acceptable neutral party can hold the record | A trusted intermediary is simpler and faster |
| The history must be verifiable by participants | Audit logging may be enough |
| Records should never need deletion | A right to erasure makes the chain a liability |
A database will be faster, cheaper, easier to hire for, easier to back up and easier to correct. Those are serious advantages, and the burden of proof sits with the blockchain.
What Are the Genuine Use Cases?
The ones that survive the test above tend to share a shape: multiple organisations, no natural neutral party, and value in a shared history nobody can quietly rewrite.
- Cryptocurrencies. The original application, set out in the Bitcoin whitepaper of 2008, and the one the design was built for.
- Cross-organisation record keeping where the participants are rivals and none will host the system.
- Provenance and custody tracking, with the oracle problem acknowledged: the chain records what someone claimed, reliably.
- Publicly verifiable registries, where the point is that anyone can check the history independently.
Projects that fail usually do so for one of two reasons: a trusted party existed all along, or the data entering the chain was never verified in the first place.
What Skills Does Blockchain Work Require?
Less blockchain-specific knowledge than people expect, and more fundamentals.
- Applied cryptography, particularly hash functions and public key cryptography. NIST's own keyword list for the report leads with cryptographic hash function and asymmetric-key cryptography.
- Distributed systems, because consensus is a distributed systems problem before it is a blockchain one.
- Secure coding, because smart contract bugs are public and permanent.
- Key management, which is where most real-world losses actually happen.
- Judgement about when not to use it, which is the scarcest of these and the most valuable.
Our guides to card fraud and mobile application security cover the key management and client-trust problems that sink most practical deployments, and basic networking covers the ground under distributed systems.
How Do You Evaluate a Blockchain Proposal?
Six questions, in this order. If the first three do not have good answers, the rest do not matter.
- Who writes to this record, and do they trust each other? One writer, or mutual trust, ends the discussion.
- Is there a neutral party who could hold it? If yes, why are they unacceptable?
- What enters the chain, and who verifies it is true? The oracle problem, asked early.
- How many confirmations before you act on a record? Tail blocks can be replaced.
- What happens if participation declines? A defunct chain is not a historical record.
- Will personal data be written to it? Permanence and erasure rights do not sit well together.
A proposal that answers all six convincingly is probably sound. One that treats "immutable" as the answer to several of them has not been thought through, and NIST's own report is the citation to hand someone who says it.
Talk to a WebAsha training advisor about batches, syllabus and current fees.
References
- NISTIR 8202, Blockchain Technology Overview, Yaga, Mell, Roby and Scarfone, National Institute of Standards and Technology, October 2018
- NIST Computer Security Resource Center record for NISTIR 8202
- NISTIR 8202, full text PDF
- Ethereum developer documentation, smart contracts
- Bitcoin: A Peer-to-Peer Electronic Cash System, 2008
Related reading
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0