resvex

Learn

What a blockchain is, in plain words

A blockchain is a shared record that thousands of computers keep at the same time. Here is how blocks, hashes and agreement between computers fit together, without the jargon.

How crypto works4 min readWritten by AI

A chain of glass cubes linked by glowing bridges, each holding a stack of cards, with small servers and network nodes around it.

Most of the records we rely on are kept by one organisation. Your bank keeps the record of your account, a land registry keeps the record of who owns a house, and you trust each of them to keep it correctly. A blockchain is a different way to keep a record. Instead of one keeper, thousands of computers each hold a full copy, and they follow shared rules to agree on every change.

A record made of blocks

The record is built up in batches called blocks. Each block holds a list of recent transactions, such as "this address sent that amount to that address", along with a timestamp and a reference to the block that came before it.

Because every block points back to the one before it, the blocks form a single line that runs all the way back to the very first block. That line is the chain in "blockchain". Anyone running the software can download it and check every entry from the beginning.

Hashes: the glue between blocks

The reference from one block to the next is made with a hash. A hash function takes any amount of data and turns it into a short, fixed-length string of characters, a kind of fingerprint. Two properties make it useful:

  • The same data always gives the same fingerprint.
  • Changing even one character of the data gives a completely different fingerprint.

Each block stores the fingerprint of the block before it. If someone quietly edited an old transaction, that block's fingerprint would change, so it would no longer match the copy stored in the next block, and every later link would break too. Other computers would see at once that the edited copy does not fit the chain they hold, and reject it.

Agreeing on the next block

If thousands of computers keep the record, someone still has to decide which block comes next. The rules for this are called a consensus mechanism. The two best known are proof of work and proof of stake.

Proof of work is what Bitcoin uses. Computers known as miners compete to find a number that, combined with the block's contents, produces a hash meeting a strict target. Finding it takes a great deal of trial and error, and so a great deal of electricity. The winner adds the block, and the other computers can check the answer in an instant. Because every block carries this cost, rewriting old history would mean redoing all that work faster than everyone else combined.

Proof of stake is what Ethereum has used since September 2022, when it switched over in an upgrade known as the Merge. Instead of spending electricity, participants called validators lock up some of the network's own currency, ether, as a deposit. Validators are picked at random to propose new blocks, and other validators check them. A validator that breaks the rules can lose part of its deposit, which gives everyone a reason to play fair.

Keys instead of usernames

A blockchain has no usernames or passwords. Instead, each user has a pair of cryptographic keys. The public key is turned into an address that others can send to, much like an account number. The private key is used to sign transactions, proving that the owner of the address approved them.

This has an important consequence: whoever holds the private key controls what is at the address. There is no help desk that can reset it. If a private key, or the seed phrase it is made from, is lost, the funds at that address are usually out of reach for good. If someone else learns it, they can move the funds.

What a blockchain does well, and what it does not

A blockchain is good at keeping a shared record that no single party controls. On a public blockchain anyone can read the history, and past entries are very hard to change.

It also has limits worth knowing:

  • It only knows what is recorded on it. A blockchain cannot check facts about the outside world on its own, such as whether a parcel arrived.
  • Public does not mean anonymous. Addresses are not names, but every transaction is visible to everyone, and addresses can often be linked to people.
  • Mistakes are hard to undo. A payment sent to the wrong address generally cannot be reversed.
  • Space is limited. Each block holds a limited number of transactions, so fees rise when many people want to use the network at once.

Public and private blockchains

The networks most people hear about, such as Bitcoin and Ethereum, are public: anyone can read them, send transactions and run a copy. Some businesses use permissioned blockchains instead, where only approved participants can take part. These keep the shared, hard-to-change record but give up the openness.

In short

A blockchain is a record kept by many computers at once. Transactions are grouped into blocks, each block is tied to the one before it by a fingerprint called a hash, and a consensus mechanism decides which block comes next. Keys take the place of passwords, which puts control, and responsibility, in the hands of whoever holds them.

To see what that means in practice, read what a crypto wallet actually holds.

Sources

  1. Bitcoin: A Peer-to-Peer Electronic Cash System (Satoshi Nakamoto, 2008) bitcoin.org
  2. Blockchain Technology Overview, NIST IR 8202 (National Institute of Standards and Technology, 2018) csrc.nist.gov
  3. Intro to Ethereum (ethereum.org) ethereum.org
  4. The Merge (ethereum.org) ethereum.org

More from Learn