Imagine being able to send and receive money without any bank or third party involved. Great, right? Since the invention of blockchain technology, this is entirely possible. Let's look at what blockchain is all about.
A blockchain is the technology on which digital currencies such as cryptocurrencies run. Thanks to blockchain, cryptocurrencies solve three major problems with banknotes: they can't be counterfeited, they don't need a central authority, and they are protected by advanced encryption.
Put simply, a blockchain is a collection of linked records that cannot be altered and are strongly encrypted.
How does blockchain work?
Let's use a simple scenario. A class has five students — Jane, Rita, Billi, Ken and Zill. Each must contribute towards buying a projector for the class, and the contributions are to be paid in Bitcoin (BTC). They agree that everyone will send their contribution to Jane, the class monitor.
When Rita sends 1 BTC to Jane, a record of that transaction is created in the form of a block showing how much Rita sent. Billi sends 3 BTC, and another block is created. Ken and Zill send 5 BTC each, and a block is created for each of those transactions too.
These blocks are linked together to form a long chain of transactions. That chain is called a ledger. All five students hold a copy of the ledger, which keeps the information safe and hard to alter, because every copy should read exactly the same.
So what happens if Rita claims she sent 6 BTC when she actually sent 1? The claim is rejected, because it doesn't match the ledger everyone else holds. Every student with a copy of the ledger has to approve a transaction or claim before it is accepted.
That is the basis of blockchain
Every cryptocurrency transaction is recorded in a block. The blocks are linked together into a chain called a ledger. Each participant on the network holds a copy, and the network must agree before any transaction is accepted. Cryptocurrencies are built on blockchains.
A blockchain is very difficult to hack, because thousands of computers hold a copy of the ledger and the network must reach agreement before a transaction succeeds.
Public and private keys
Every user on a blockchain network has two keys: a public key, which everyone on the network can see, and a private key, known only to that user (like a password). When a user sends crypto to someone else:
- The sender states how much crypto (for example, BTC) to send, along with their own and the receiver's wallet addresses.
- These details are run through a hashing algorithm and signed with the sender's private key, proving the transaction came from them.
- The transaction is broadcast to the network and sent to the receiver's address.
- Only the receiver, using their private key, can spend the funds that arrive.
Hashing algorithms and mining
Different cryptocurrencies use different hashing algorithms. Bitcoin uses SHA-256; Ethereum originally used Ethash before moving to proof of stake in 2022.
The people who validate and approve blocks on a proof-of-work blockchain are called miners. Miners compete to solve complex mathematical problems. The first miner to solve the problem adds the next block to the ledger and is rewarded with that blockchain's cryptocurrency. This process is called proof of work, and adding blocks to the ledger is called mining. Every other miner on the network is then updated with the new block.



