No history yet

Introduction to Blockchain

The Shared Notebook

At its heart, a blockchain is just a special kind of digital notebook. Imagine a notebook shared among a huge group of people. Whenever someone wants to add a new entry, like "Alice paid Bob $10," they announce it to everyone. Everyone in the group then adds that new entry to their own copy of the notebook.

At its most basic level, a blockchain is a digital ledger maintained by a decentralized network of computers.

This setup means no single person or company owns the notebook. It's public, and everyone's copy is identical. Because thousands of copies exist, it’s incredibly difficult to cheat. If you tried to secretly change an entry in your notebook, it wouldn't match anyone else's, and your change would be instantly rejected. This shared, synchronized record-keeping is what makes a blockchain so secure.

Blocks in a Chain

The notebook isn't just one long, continuous page. It's organized into pages, or "blocks." Each block contains a list of recent transactions. Once a block is full, it's sealed and added to the end of the chain of previous blocks. This creates a chronological record, just like pages in a book.

How are these blocks linked together? Through cryptography. Each block is given a unique digital fingerprint called a hash. This hash is created based on the data inside the block. Crucially, each new block also includes the hash of the block that came before it. This is what forms the "chain."

Hash

noun

A unique, fixed-length string of characters generated from digital data. Even a tiny change to the input data will produce a completely different hash.

If someone tried to alter a transaction in an old block, the block's hash would change. Since the next block in the chain contains the original hash, the link would break. To successfully cheat, a person would have to recalculate the hash for the altered block and every single block that came after it, all before the rest of the network added the next legitimate block. This is practically impossible.

Agreeing on the Truth

If everyone has a copy of the notebook, how do they all agree on what to add next? This is a huge challenge in any decentralized system. Blockchains solve it with something called a consensus mechanism.

A consensus mechanism is a set of rules that allows everyone on the network to agree on the state of the ledger, ensuring that new blocks are valid and added to the correct chain.

There are many types of consensus mechanisms, but two are the most common.

MechanismHow it WorksAnalogy
Proof of Work (PoW)Participants (miners) compete to solve a complex mathematical puzzle. The first to solve it gets to add the next block and is rewarded.A race where the first person to solve a hard Sudoku puzzle gets to write the next page in the notebook.
Proof of Stake (PoS)Participants (validators) are chosen to add the next block based on how many coins they have "staked" or locked up as collateral.A lottery where your number of tickets is based on how much money you have deposited in the system's bank.

Both methods make it expensive and difficult for a bad actor to take control. In PoW, they'd need immense computational power. In PoS, they'd need a huge amount of the cryptocurrency, which they would risk losing if they tried to cheat.

Ready to check your understanding of these foundational ideas?

Quiz Questions 1/5

At its core, a blockchain is best described as what?

Quiz Questions 2/5

What is the primary mechanism that links one block to the next, forming the 'chain'?

These three ideas—a chained block structure, decentralization, and a consensus mechanism—work together to create a secure, transparent, and tamper-proof system for recording information. It's this foundation that makes technologies like cryptocurrencies possible.