Explainer
How blockchains work: ledgers, hashing, consensus and keys
A blockchain is a shared digital ledger: transactions are grouped into blocks, each block is linked to the one before it by a cryptographic hash, and copies are kept across a network rather than by one bank or company.[1][2] The network agrees on new blocks through a consensus method such as proof of work (Bitcoin) or proof of stake (Ethereum), and users control their coins with private keys.[3][4][5]
This explainer covers the shared ideas behind public blockchains, using Bitcoin and Ethereum as the main examples. Read it first, then the stablecoin and crypto tax explainers linked at the end.
A shared ledger
A blockchain is a record book that many computers keep at once. Transactions are signed, grouped into blocks and added in order, and each block is linked to the one before it.[1] Usually no single bank, company or government runs it.[2] When a new block is added, every copy of the ledger is updated, and set rules settle any conflicts automatically.[6]
The idea took off with Bitcoin, whose white paper described “a purely peer-to-peer version of electronic cash”.[7] Its problem was double-spending: how to stop the same digital coin being spent twice without a trusted middleman.[8]
NIST defines blockchains as tamper-evident, tamper-resistant ledgers implemented in a distributed fashion, usually with no central authority.[2] Transactions are cryptographically signed and batched into blocks, and a block is linked to its predecessor only after validation and a consensus decision.[1] The Bitcoin design framed this as a solution to double-spending over a peer-to-peer network, with no trusted third party.[8]
Networks differ in who may write. In a permissionless chain such as Bitcoin, anyone can read and write without authorisation; a permissioned chain limits participation to specific people or organisations.[9]
Blocks and hashing
A hash function turns any data into a short fingerprint. Hash the same data and you get the same fingerprint; change even one bit and the fingerprint changes completely.[10] Bitcoin and many other chains use a function called SHA-256.[11]
Each block carries the fingerprint of the block before it, so the blocks form a chain.[12] Changing an old block would change its fingerprint and break every link after it. That is why older blocks become harder to change as more blocks pile on top.[13]
A cryptographic hash maps input of nearly any size to a fixed-size digest, and a one-bit change in the input yields an unrelated output.[10] SHA-256, with a 256-bit output, is common in blockchain implementations.[11] The block header stores a digest of the block’s data, and that header digest is stored in the next block, which the Bitcoin white paper described as a chain of timestamps that each reinforce the ones before.[12] To rewrite a past block on Bitcoin, an attacker would have to redo the proof of work for that block and all later ones, then overtake the honest nodes.[13]
Consensus: proof of work and proof of stake
The network needs a fair way to decide who adds the next block. Under proof of work, computers race to solve a puzzle that is hard to solve but easy to check, and the winner publishes the block.[3] Bitcoin adjusts the puzzle’s difficulty so a block arrives about every ten minutes.[14] The miner who creates a block currently earns 3.125 bitcoin.[15] The race uses a lot of computing power and electricity.[16]
Under proof of stake, participants lock up their own coins instead. The idea is that people with more at stake have more reason to keep the system honest, and no heavy computation is needed.[17] Ethereum switched from proof of work to proof of stake in September 2022, an event called the Merge.[4]
In proof of work, publishing nodes vary a nonce until the block header’s hash meets a difficulty target; Bitcoin retargets every 2,016 blocks to keep the block interval near ten minutes.[3][14] Nodes treat the longest chain, the one with the most accumulated work, as canonical.[18] Estimates cited by ethereum.org put Ethereum mining at about 70 TWh a year just before the Merge, against about 0.0026 TWh a year for the proof-of-stake network.[19]
On proof-of-stake Ethereum, a validator deposits 32 ETH and runs execution, consensus and validator clients.[20] Time runs in 12-second slots grouped into 32-slot epochs, with one randomly chosen proposer per slot.[21] Validators who equivocate can have some or all of their stake destroyed (“slashed”), and reverting a finalised block would cost an attacker at least a third of all staked ETH.[22][23]
Wallets and keys
What really matters in a wallet is the private key: the secret that signs transactions and gives you control of the funds tied to your account.[5][24] Lose the key and the coins are gone for good; if someone steals it, they can take everything it controls.[25]
Self-custody wallets don’t hold your funds, and they usually give you a seed phrase to write down for recovery. A centralised exchange holds the funds for you and lets you recover access with a username and password.[26] The trade-off is that your funds are at risk if the exchange gets into financial trouble.[27]
Blockchains use asymmetric-key cryptography: private keys sign transactions, and public keys verify those signatures.[24] Control of an account’s funds comes from the private key used to sign its transactions.[5] NIST notes that a lost private key cannot be regenerated, and that most reported crypto thefts involve stolen keys signing transfers, not a compromise of the chain itself.[25][28]
Layer 2 networks
Layer 2 networks handle transactions away from the Ethereum main chain while still relying on its security.[29] The most common kind, rollups, do the work elsewhere and post the transaction data back to Ethereum.[30] A layer 2 is only as safe as its own technology, smart contracts and maturity.[31]
Ethereum has chosen not to scale its base layer directly, since faster blocks would need bigger nodes and more specialised hardware and fewer people could run one.[32] Rollups execute off-chain and publish their data on layer 1, inheriting Ethereum’s consensus security; the December 2025 Fusaka upgrade added PeerDAS so layer 2s can post and retrieve that data more efficiently.[30][32]
Where to go next
Blockchains carry more than native coins. Stablecoins are tokens designed to hold a steady value against a currency such as the US dollar, and the stablecoins explainer covers how they work and how US law now regulates them.[33][34] The US tax system treats digital assets as property, which the crypto tax explainer covers.[35] For ways to get price exposure without holding keys yourself, see spot crypto ETFs and the index funds and ETFs explainer.
This page explains technology. It is not financial or investment advice.
Read next
Next in the crash course
Bitcoin (BTC)
Bitcoin is a digital currency with a 21 million coin cap and a mining reward that halves every four years. How it works, its price history and ETFs.
Questions readers ask
What is a blockchain in simple terms?
A blockchain is a digital ledger of signed transactions grouped into blocks, with each block linked to the previous one and copies held across a network instead of by one central authority.[1][2]
Why is it hard to change a blockchain?
Each block stores a hash of the block before it, and any change to data produces a completely different hash. Older blocks get harder to change as new ones are added; on Bitcoin, an attacker would have to redo the proof of work for every later block.[12][10][13]
What is the difference between proof of work and proof of stake?
In proof of work, the first participant to solve a hard computing puzzle publishes the next block, which uses a lot of resources. In proof of stake, validators lock up cryptocurrency and can lose it if they cheat, without the heavy computation.[3][16][17][22]
What happens if I lose my private key?
Any digital asset tied to a lost private key is lost, because the key cannot practically be regenerated. If a key is stolen, the thief has full access to the assets it controls.[25]
What is a layer 2?
A layer 2 is a system that handles transactions off the Ethereum main chain while relying on its security. Rollups, the main type, execute transactions elsewhere and post the data back to Ethereum.[29][30]
Was Bitcoin hacked when coins are reported stolen?
NIST says such reports almost always mean private keys were found and used to sign transfers, not that the blockchain network itself was compromised.[28]
Sources
· 35 claims from 9 publishers
Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.
- [1]
A blockchain groups cryptographically signed transactions into blocks, and each block is cryptographically linked to the previous one after it is validated and agreed by consensus, which makes tampering evident. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Executive Summary (retrieved 2026-11-07)
- [2]
NIST describes blockchains as tamper-evident and tamper-resistant digital ledgers kept in a distributed way, without a central repository and usually without a central authority such as a bank, company or government. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Abstract (retrieved 2026-11-07)
- [3]
Under proof of work, the next block is published by whoever first solves a computationally intensive puzzle that is hard to solve but easy for everyone else to check. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.1, Proof of Work Consensus Model (retrieved 2026-11-07)
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.1, Proof of Work Consensus Model (retrieved 2026-11-07)
- [4]
Ethereum completed "the Merge" on September 15, 2022, moving from proof of work to proof of stake; issuance of new ether can be partly or fully offset by a fee-burning mechanism introduced by EIP-1559. confirmedas of 2026-02-25
- Grayscale Ethereum Staking ETF (ETHE), Form 10-K for the year ended December 31, 2025 · Grayscale Ethereum Staking ETF (SEC filing) · Primary source · 2026-02-25 (retrieved 2026-10-10)
- [5]
On Ethereum, the private key used to sign transactions is what gives a person custody of the funds tied to an account. confirmedas of 2026-11-07
- Ethereum accounts · ethereum.org (Ethereum Foundation) · Primary source · Account creation (retrieved 2026-11-07)
- [6]
New blocks are copied to every copy of the ledger across the network, and conflicts are resolved automatically by set rules. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Executive Summary (retrieved 2026-11-07)
- [7]
Bitcoin was described in a white paper attributed to the pseudonymous Satoshi Nakamoto as "a purely peer-to-peer version of electronic cash" that lets payments go directly between parties without a financial institution. confirmedas of 2026-10-10
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Abstract (retrieved 2026-10-10)
- Grayscale Bitcoin Mini Trust ETF, Form 10-K for the year ended December 31, 2025 · Grayscale Bitcoin Mini Trust ETF (SEC filing) · Primary source · 2026-02-25 · History of Bitcoin (retrieved 2026-10-10)
- [8]
The Bitcoin white paper set out to stop "double-spending", the same digital coin being spent twice, without relying on a trusted third party, by using a peer-to-peer network. confirmedas of 2026-11-07
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Abstract (retrieved 2026-10-10)
- [9]
In a permissionless blockchain anyone can read and write to the chain without authorisation, while permissioned blockchains limit participation to specific people or organisations. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Executive Summary (retrieved 2026-11-07)
- [10]
A cryptographic hash function turns input data of almost any size into a short "digest"; anyone can hash the same data and get the same result, and changing even a single bit of input produces a completely different digest. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.1, Cryptographic Hash Functions (retrieved 2026-11-07)
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.1, Cryptographic Hash Functions (retrieved 2026-11-07)
- [11]
Many blockchains, including Bitcoin, use the SHA-256 hash function, which produces a 256-bit output. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.1, Cryptographic Hash Functions (retrieved 2026-11-07)
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Section 4, Proof-of-Work (retrieved 2026-10-10)
- [12]
Each block header stores a hash of the block's data, and the next block stores the hash of that header, which is how blocks are chained together. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.1, uses of hash functions (retrieved 2026-11-07)
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Section 3, Timestamp Server (retrieved 2026-10-10)
- [13]
As new blocks are added, older blocks become harder to change; in Bitcoin's design, altering a past block would mean redoing the proof of work for that block and every block after it, then overtaking the honest network. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Executive Summary (retrieved 2026-11-07)
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Section 4, Proof-of-Work (retrieved 2026-10-10)
- [14]
Bitcoin adjusts its proof-of-work puzzle difficulty every 2,016 blocks to keep new blocks arriving about once every ten minutes. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.1, Proof of Work Consensus Model (retrieved 2026-11-07)
- [15]
A new Bitcoin block is added about every 10 minutes on average, and the miner who creates it currently receives 3.125 bitcoin. confirmedas of 2026-02-25
- Grayscale Bitcoin Mini Trust ETF, Form 10-K for the year ended December 31, 2025 · Grayscale Bitcoin Mini Trust ETF (SEC filing) · Primary source · 2026-02-25 · Overview of the Bitcoin Network (retrieved 2026-10-10)
- [16]
NIST notes that proof-of-work puzzle solving requires significant resource consumption. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.1, Proof of Work Consensus Model (retrieved 2026-11-07)
- [17]
Proof of stake rests on the idea that users with more cryptocurrency staked in a system are more likely to want it to succeed, and it avoids the resource-intensive computation of proof of work. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.2, Proof of Stake Consensus Model (retrieved 2026-11-07)
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 4.2, Proof of Stake Consensus Model (retrieved 2026-11-07)
- [18]
In Bitcoin, nodes treat the longest chain, the one with the most proof-of-work effort behind it, as the correct record. confirmedas of 2026-11-07
- Bitcoin: A Peer-to-Peer Electronic Cash System · Satoshi Nakamoto (bitcoin.org) · Primary source · Section 4, Proof-of-Work (retrieved 2026-10-10)
- [19]
Ethereum's proof-of-stake network uses an estimated 0.0026 TWh of electricity a year, according to a Crypto Carbon Ratings Institute estimate cited by ethereum.org, compared with about 70 TWh a year for Ethereum mining shortly before the switch, per a Digiconomist estimate it cites. confirmedas of 2026-11-07
- Ethereum energy consumption · ethereum.org (Ethereum Foundation) · Primary source · Ethereum's energy expenditure (CCRI estimate) (retrieved 2026-11-07)
- Proof-of-work (PoW) · ethereum.org (Ethereum Foundation) · Primary source · Proof-of-work energy-usage (Digiconomist, 18 July 2022) (retrieved 2026-11-07)
- [20]
To become an Ethereum validator, a user deposits 32 ETH into the deposit contract and runs an execution client, a consensus client and a validator client. confirmedas of 2026-11-07
- Proof-of-stake (PoS) · ethereum.org (Ethereum Foundation) · Primary source · Validators (retrieved 2026-11-07)
- [21]
Proof-of-stake Ethereum divides time into 12-second slots and 32-slot epochs, and one validator is chosen at random to propose a block in each slot. confirmedas of 2026-11-07
- Proof-of-stake (PoS) · ethereum.org (Ethereum Foundation) · Primary source · Validators (retrieved 2026-11-07)
- [22]
Ethereum validators who try to defraud the network, for example by proposing several blocks when they should send one, can have some or all of their staked ETH destroyed. confirmedas of 2026-11-07
- Proof-of-stake (PoS) · ethereum.org (Ethereum Foundation) · Primary source · What is proof-of-stake (retrieved 2026-11-07)
- [23]
According to ethereum.org, reverting a finalised Ethereum block would cost an attacker at least one-third of all staked ETH. confirmedas of 2026-11-07
- Proof-of-stake (PoS) · ethereum.org (Ethereum Foundation) · Primary source · Finality (retrieved 2026-11-07)
- [24]
Blockchains use pairs of public and private keys; private keys sign transactions, and public keys are used to verify those signatures. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.3, Asymmetric-Key Cryptography (retrieved 2026-11-07)
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.3, Asymmetric-Key Cryptography (retrieved 2026-11-07)
- [25]
If a private key is lost, the digital assets tied to it are lost, and if it is stolen, the thief has full access to those assets. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.4.1, Private Key Storage (retrieved 2026-11-07)
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.4.1, Private Key Storage (retrieved 2026-11-07)
- [26]
Self-custody wallet providers do not hold users' funds, and such wallets usually issue a seed phrase that users must store safely to recover them; a centralised exchange instead holds the funds and can restore access through a username and password. confirmedas of 2026-11-07
- Ethereum wallets · ethereum.org (Ethereum Foundation) · Primary source · What's an Ethereum wallet (retrieved 2026-11-07)
- Ethereum wallets · ethereum.org (Ethereum Foundation) · Primary source · Wallet tips (retrieved 2026-11-07)
- Ethereum wallets · ethereum.org (Ethereum Foundation) · Primary source · Wallet tips (retrieved 2026-11-07)
- [27]
ethereum.org warns that funds held on a centralised exchange are at risk if the exchange gets into financial trouble. confirmedas of 2026-11-07
- Ethereum wallets · ethereum.org (Ethereum Foundation) · Primary source · Wallet tips (retrieved 2026-11-07)
- [28]
NIST says that reported cryptocurrency thefts almost always mean private keys were found and used to sign transfers, not that the blockchain itself was compromised. confirmedas of 2026-11-07
- NISTIR 8202: Blockchain Technology Overview · National Institute of Standards and Technology · Primary source · 2018-10-03 · Section 3.4.1, Private Key Storage (retrieved 2026-11-07)
- [29]
Layer 2 refers to systems that process transactions off the Ethereum main chain (layer 1) while relying on the main chain's security. confirmedas of 2026-11-07
- Scaling · ethereum.org (Ethereum Foundation) · Primary source · Layer 2 scaling (retrieved 2026-11-07)
- [30]
Rollups execute transactions outside layer 1 and then post the transaction data to layer 1, which lets them rely on Ethereum's own security. confirmedas of 2026-11-07
- Scaling · ethereum.org (Ethereum Foundation) · Primary source · Rollups (retrieved 2026-11-07)
- [31]
ethereum.org says a layer 2's safety depends on its underlying technology, its smart contract security and how mature the network is. confirmedas of 2026-11-07
- Intro to Ethereum Layer 2: benefits and uses · ethereum.org (Ethereum Foundation) · Primary source · Layer 2 networks (retrieved 2026-11-07)
- [32]
Ethereum does not simply speed up its main chain because that would need larger nodes and more specialised hardware, cutting the number of people who can run a node; the December 2025 Fusaka upgrade added PeerDAS, a more efficient way for layer 2s to post and retrieve data. confirmedas of 2026-11-07
- Intro to Ethereum Layer 2: benefits and uses · ethereum.org (Ethereum Foundation) · Primary source · Why is layer 2 needed (retrieved 2026-11-07)
- Intro to Ethereum Layer 2: benefits and uses · ethereum.org (Ethereum Foundation) · Primary source · Why is layer 2 needed (retrieved 2026-11-07)
- [33]
Stablecoins are crypto assets that aim to hold a stable value against a reference asset, most often the US dollar, according to the Bank for International Settlements. confirmedas of 2026-04-20
- Stablecoins: speech by the General Manager of the BIS at a Bank of Japan seminar · Bank for International Settlements · Primary source · 2026-04-20 · Speech by the BIS General Manager, 20 April 2026 (retrieved 2026-11-07)
- [34]
The President signed the GENIUS Act on July 18, 2025, and it became Public Law 119-27. confirmedas of 2026-10-10
- Bill status: S. 1582, GENIUS Act (119th Congress), all actions · U.S. Government Publishing Office / Library of Congress (govinfo bill status) · Primary source · Action dated 2025-07-18 (retrieved 2026-10-10)
- Public Law 119-27: Guiding and Establishing National Innovation for U.S. Stablecoins Act (GENIUS Act) · U.S. Government Publishing Office (public law text) · Primary source · 2025-07-18 (retrieved 2026-10-10)
- [35]
For US federal tax purposes, digital assets such as cryptocurrency are treated as property, not currency, a position the IRS first set out in Notice 2014-21. confirmedas of 2026-11-07
- Digital assets · Internal Revenue Service · Primary source · What's a digital asset (retrieved 2026-11-07)
- Notice 2014-21 · Internal Revenue Service · Primary source · 2014-03-25 · Q&A-1 (retrieved 2026-11-07)
Revision history (1)
- Page created.
Created Nov 7, 2026. Last reviewed by an editor on Nov 8, 2026. Next scheduled review: Apr 7, 2027.
Cite this page
"How blockchains work: ledgers, hashing, consensus and keys." ContentLora, updated Nov 7, 2026. https://contentlora.com/explain/how-blockchains-work
Spotted an error? Suggest a correction or emailcorrections@contentlora.com.