Crypto 4 min read Apex Wire Markets Desk

How Does Blockchain Work? A Simple Guide to the Technology

A blockchain is a shared digital ledger with no central keeper. This guide explains how blocks, hashes and consensus keep the record honest.

Cryptocurrency mining hardware using blockchain technology

Image: Wikimedia Commons / Project Kei

How does blockchain work? A blockchain is a shared digital ledger kept in sync across many computers, with no single keeper. New records are grouped into blocks; each block is locked to the one before it with cryptography, and the network agrees on which version of the record is correct. That makes the record hard to change.

A 2008 paper published under the name Satoshi Nakamoto set out a payment system with no trusted authority keeping the record, and the Bitcoin network began running in January 2009. The Bank of England later told the UK Parliament's Treasury Committee the aim was a payment system with no bank keeping the ledger.

Key Takeaways

  • A blockchain is a shared ledger: every computer holds a copy, and no one party controls it.
  • Each block carries the hash of the block before it, so an old record cannot change without breaking the chain.
  • New blocks are agreed by a consensus rule, such as proof of work or proof of stake.
  • Blockchains suit records shared between parties that do not fully trust each other.

How Blocks Are Chained Together With Cryptography

Every transaction starts as a signed message. The sender signs it with a private key, and anyone can check the signature against the matching public key. Valid transactions are gathered into a block and sealed with a cryptographic hash, a fingerprint of the block's contents.

The chain comes from what each block stores: every block after the first contains the hash of the block before it. Rewriting an old transaction means redoing that block and every block after it. The US National Institute of Standards and Technology (NIST) calls blockchains "tamper evident and tamper resistant."

How the Network Agrees: Proof of Work and Proof of Stake

Copies of a ledger only help if the computers agree on which copy is correct. The rules for agreement are called a consensus mechanism.

In proof of work, computers compete to solve a hard cryptographic puzzle, and the winner adds the next block. The puzzle makes adding blocks costly, which makes rewriting history costly too. The cost is energy. Bitcoin's network uses as much electricity in a year as a mid-sized country, per the Cambridge Bitcoin Electricity Consumption Index.

Proof of stake takes a different route. Participants lock up some of the network's currency, and the protocol picks one of them to add the next block. Ethereum switched to proof of stake on September 15, 2022, in an upgrade called the Merge, cutting its energy use by more than 99 percent, according to the Ethereum Foundation.

Public vs Private Blockchains and What the Technology Is Used For

Not every blockchain is open to everyone. Public networks such as Bitcoin are permissionless: anyone can join, read the ledger, and help validate transactions. Private blockchains limit participation to chosen organizations.

The same design powers smart contracts — programs on a blockchain that run automatically when their conditions are met. It also sits behind tokenization, where a share, bond, or unit of currency is issued as a record on a distributed ledger.

None of this makes blockchain right for every job. NIST's overview is blunt: a blockchain is slower than a conventional database and cannot fix bad data. It earns its keep when several parties need one shared record and none wants to trust the others with the only copy.

FeatureBlockchainTraditional database
Who holds the recordMany computersOne organization
Who can change itThe network, by agreed rulesAn administrator
Changing an old recordRedoing every later blockA simple edit
Trust neededNone in a single partyTrust in the owner
SpeedSlowerFaster

Frequently Asked Questions

Is blockchain the same thing as Bitcoin?

No. Bitcoin is a cryptocurrency that runs on a blockchain; the blockchain is the record-keeping technology underneath it.

Can a blockchain be hacked or changed?

Changing a published record is extremely hard on a large public network: every later block would have to be redone. Quantum computing is a longer-term concern for the cryptography blockchains rely on.

How much energy does blockchain use?

It depends on the consensus rule. Proof-of-work networks such as Bitcoin use a large amount of electricity — as much as a mid-sized country in a year, per the Cambridge index. Proof-of-stake networks use far less.

Is blockchain anonymous?

No. On a public blockchain every transaction is visible, tied to an address rather than a name. That makes it pseudonymous: an address can often be linked to a person.

Reported and fact-checked by our editorial desk against independent primary sources. Read our Editorial Policy.
Apex Wire Markets Desk

Wall Street, corporate earnings and business, Federal Reserve policy, markets, banking, insurance and crypto.

More from the Apex Wire Markets Desk →

Share
✓ Link copied