
Chapter 3: How Blockchain Is Implemented
Turning the Concept into Reality
Understanding the principles behind blockchain is only the first step. To appreciate its significance, it is essential to examine how the technology is implemented in practice.
At its core, a blockchain combines several existing technologies, distributed computing, cryptography and economic incentives, to create a secure and decentralised system for recording and validating transactions. Rather than relying on a central authority, blockchain networks use a combination of blocks, hashes, nodes and consensus mechanisms to maintain a shared and trustworthy ledger.
This chapter explores the key components that make blockchain systems work.
Blocks, Hashes and Nodes
Blocks
A blockchain is composed of a sequence of digital records known as blocks. Each block acts as a container for information, typically storing a collection of validated transactions.
In addition to transaction data, every block contains:
- A timestamp indicating when the block was created
- A unique identifier known as a hash
- The hash of the previous block
By including the previous block's hash, each block becomes securely linked to the one before it, forming a chronological chain of records.
Once a block has been added to the blockchain, altering its contents would change its hash and break the connection with subsequent blocks, making any tampering immediately evident.
Hashes
A hash is a fixed-length string of characters generated by a cryptographic algorithm.
Hashing functions have several important properties:
- The same input always produces the same output
- Even a minor change to the input creates a completely different hash
- Hashes cannot be easily reversed to reveal the original data
- The process is fast and efficient to compute
For example, changing a single character in a transaction record results in an entirely different hash value.
This characteristic allows blockchain networks to verify data integrity. If someone attempts to modify a historical transaction, the corresponding hash changes, alerting the network to the inconsistency.
Nodes
A node is any computer connected to the blockchain network.
Each node stores a copy of the blockchain ledger and participates in maintaining the network. Depending on the blockchain's design, nodes may perform different functions, including:
- Validating transactions
- Relaying information to other nodes
- Creating new blocks
- Verifying consensus rules
Because multiple nodes maintain copies of the ledger, the network does not depend on a single server or organisation. This distributed structure improves resilience and reduces the risk of failure or manipulation.
If one node becomes unavailable, the remaining nodes continue to operate without interruption.
Consensus Mechanisms
In a decentralised network, participants need a reliable method to agree on which transactions are valid and which version of the ledger is correct.
This process is known as consensus.
Consensus mechanisms establish the rules by which network participants verify transactions and approve new blocks.
Proof of Work
Proof of Work (PoW) was the first widely adopted consensus mechanism and remains the foundation of several blockchain networks.
In a PoW system, specialised nodes known as miners compete to solve complex mathematical problems. The first participant to solve the problem earns the right to add a new block to the blockchain and receives a reward.
Proof of Work offers strong security because altering the blockchain would require enormous computational resources. However, it also has notable disadvantages:
- High energy consumption
- Limited transaction throughput
- Increasing hardware requirements
Proof of Stake
Proof of Stake (PoS) was developed as a more energy-efficient alternative.
Rather than competing through computational power, validators are selected based on the amount of cryptocurrency they commit, or stake, within the network.
Participants who behave honestly may earn rewards, while those who attempt to manipulate the system risk losing a portion of their stake.
Compared with Proof of Work, Proof of Stake generally provides:
- Lower energy consumption
- Faster transaction processing
- Reduced hardware requirements
Many modern blockchain platforms have adopted Proof of Stake or variations of it.
Other Consensus Approaches
Blockchain systems continue to evolve, and numerous alternative consensus mechanisms have emerged, including:
- Delegated Proof of Stake (DPoS)
- Proof of Authority (PoA)
- Practical Byzantine Fault Tolerance (PBFT)
Each approach balances security, decentralisation and performance differently, depending on the intended use case.
Smart Contracts
A smart contract is a self-executing computer programme stored on a blockchain.
It contains predefined rules that automatically execute when specific conditions are met.
Unlike traditional contracts, smart contracts do not require intermediaries to verify or enforce agreements. Instead, the blockchain network ensures that the contract operates exactly as programmed.
For example, a smart contract could automatically:
- Release payment once goods have been delivered
- Transfer ownership of a digital asset
- Distribute royalties to content creators
- Process insurance claims when predefined conditions are satisfied
Because smart contracts are stored on the blockchain, they benefit from the same characteristics as other blockchain data:
- Transparency
- Immutability
- Security
- Automation
However, smart contracts are only as reliable as the code they contain. Errors or vulnerabilities in their programming can lead to unintended consequences, making thorough testing and auditing essential.
Bringing the Components Together
A blockchain functions through the interaction of its core components.
Transactions are grouped into blocks, secured through cryptographic hashes and distributed across a network of nodes. Consensus mechanisms enable participants to agree on the state of the ledger, while smart contracts automate processes and expand the technology's capabilities beyond simple payments.
Together, these elements create a decentralised system capable of recording, verifying and executing transactions without relying on a central authority.
By combining cryptography, distributed networks and automated rules, blockchain offers a new model for building trustworthy digital systems in an increasingly connected world.



