Skip to content
Search
Crypto Informa

Prices USD · 24 h

  • BTC$61,570.00+1.33%
  • ETH$1,721.34+1.02%
  • XRP$0.9737+2.07%
  • BNB$563.16+1.97%
  • SOL$73.02+2.89%
  • DOGE$0.0587+3.23%
  • ADA$0.1529+2.38%
  • TRX$0.3044+0.34%
Data by CoinGecko

Learning pathBeginnerStep 2 of 15

Blockchain explained: blocks, nodes and consensus

What a blockchain is, how thousands of computers that do not know each other agree, and how proof of work differs from proof of stake.

By Redacción Crypto Informa
Published:
Reading time: 4 min
Share
La mascota de Crypto Informa inspecciona con una lupa una cadena de bloques de cristal conectada a varios nodos.
Illustration: Crypto Informa · Original illustration

A blockchain is a data record written in linked blocks and shared by many computers at once. Each block stores a set of transactions and a digital fingerprint (a hash) of the previous block. If someone changed an old entry, that fingerprint would no longer match and the rest of the network would notice immediately.

The essentials

  • A blockchain is a shared record written in blocks linked through digital fingerprints.
  • Each network has consensus rules so everyone accepts the same history: proof of work on Bitcoin and proof of stake on Ethereum.
  • The more decentralized and older a network is, the harder it is to alter.
  • A secure blockchain does not mean everything built on it is secure.

Three key ideas

  • Distributed: there is no central database; each node has its own copy.
  • Verifiable: anyone can download the record and check the rules independently.
  • Difficult to modify: rewriting the past requires overcoming the network's honest majority.

The consensus problem

If anyone can propose blocks, which one counts? Each network defines a consensus mechanism: rules for choosing who adds the next block and ensuring all nodes ultimately accept the same history.

Proof of work

This is Bitcoin's mechanism. Miners compete to solve a mathematical problem by trying combinations, consuming electricity and specialized equipment. The winner adds the block and receives the reward. Attacking the network would require more computing power than everyone else combined, an extremely expensive undertaking. Every 2,016 blocks (about two weeks), Bitcoin adjusts difficulty to maintain an average of one block every 10 minutes.

Proof of stake

Ethereum has used this mechanism since September 2022. Instead of spending energy, validators deposit ETH as collateral. Correct validation earns rewards; attempted cheating—for example, signing two conflicting blocks—costs them part of their deposit. It uses far less energy, though it raises other debates, such as capital being concentrated among a few participants.

Public and private

Bitcoin and Ethereum are public blockchains: anyone can use them and validate. Private or permissioned networks also exist, used by banks and companies to tokenize securities or settle transactions. They are faster and more controlled, but less open: you must trust their administrators.

See for yourself

Block explorers show every transaction and block: mempool.space for Bitcoin, Etherscan for Ethereum. Look up a recent block number and see what it contains. This is the best way to understand that the record is public.

What is a hash?

A hash is a digital fingerprint of data: a mathematical function that converts any information into a short, fixed-length string. It has three useful properties: the same data always produces the same fingerprint; changing a single letter produces a completely different fingerprint; and the original data cannot be reconstructed from the fingerprint.

Bitcoin uses a function called SHA-256. Each block includes the previous block's hash, forming a chain: changing an old block alters its fingerprint and breaks every subsequent link.

Anatomy of a block

  • Transactions: the list of transfers it contains.
  • Previous block's hash: the link connecting it to the chain.
  • Approximate creation date and time.
  • Merkle root: a compact summary of all transactions, allowing inclusion to be checked without downloading the entire block.
  • Nonce: in proof of work, the number miners keep changing until they find a hash meeting the required difficulty.

What if two miners find a block at once?

Sometimes two valid blocks appear almost simultaneously and the network briefly splits. Each node follows the chain it received first until the next block arrives: the branch accumulating more work wins and the other is discarded. This is why Bitcoin users wait for several confirmations before considering a transaction final: each new block makes reversal less likely.

Ethereum instead has a finality mechanism: after about 13 minutes, blocks become “finalized”, and reversing them would require destroying an enormous share of validators' deposited capital.

What is a 51% attack?

If a person or group controlled more than half the computing power of a proof-of-work network, they could rewrite recent blocks and spend the same coins twice. They could not steal other people's coins or change the rules. On huge networks such as Bitcoin, this would be extremely expensive; on small networks, it has already happened.

Decentralization: the key question

  • How many independent nodes support the network?
  • How many miners or validators control most of the power?
  • Who can change the rules, and how?

A network with few operators resembles an ordinary database under another name more than an open blockchain.

Quick glossary

  • Node: a computer that stores a copy of the record and verifies the rules.
  • Miner: someone who groups transactions into blocks on a proof-of-work network.
  • Validator: someone who proposes and confirms blocks on a proof-of-stake network.
  • Consensus: the rules by which all nodes agree on the valid history.
  • Fork: a change in a network's rules. If everyone adopts it, nothing visible happens; if some reject it, the chain may split in two.

Next step: where cryptocurrencies are stored and who controls them, through wallets.

Tags

This is information, not financial advice. Before deciding, compare sources and consider your own situation.