Certified Crypto Market

What Is Sharding? Blockchain Scaling Explained

What is sharding? A plain-English explanation of how blockchains split work into shards to scale, the main designs, the security trade-offs and examples.

CCM ResearchCertified Crypto Market1 nov. 20264 min läsning
Dela på XLinkedIn

Sharding is a blockchain scaling technique that splits the network's workload into smaller pieces, called shards, which are processed in parallel by different groups of nodes. Instead of every node handling every transaction, each shard handles a portion, so the network as a whole can process more activity.

The idea comes from traditional databases, where large tables are split across many servers. In blockchains, sharding is harder because the shards must stay secure and consistent without a central coordinator. This guide explains how sharding works, the main types, the trade-offs and which networks use it.

Why Blockchains Need Scaling

In a traditional blockchain, every full node processes every transaction and stores the entire state. That makes verification simple and secure, but it also means the network can only go as fast as a single node. Adding more nodes adds security and decentralization, not capacity. Related reading: What Is a Testnet and Mainnet?

Sharding attempts to break that limit by letting different nodes handle different parts of the work. For an overview of other approaches, see what are layer 1 and layer 2 blockchains.

How Sharding Works

Imagine a library with one librarian who must check out every book for every visitor. Sharding is like opening several desks, each handling books from certain shelves. More visitors can be served at once, but the desks must coordinate when a visitor wants books from several sections. For background on the project itself, see MultiversX (EGLD) explained.

In a sharded blockchain:

  1. 1The network is divided into shards.
  2. 2Validators are assigned, often randomly, to specific shards.
  3. 3Each shard processes its own transactions and maintains part of the state.
  4. 4A coordinating layer, sometimes called a beacon or relay chain, tracks shard results and provides shared security.
  5. 5Messages pass between shards when a transaction affects accounts or contracts on different shards.

Types of Sharding

TypeWhat is splitMain challenge
Network shardingNodes are grouped into shardsSecure, random assignment
Transaction shardingTransactions are distributed across shardsPreventing double spends across shards
State shardingAccount balances and contract data are splitCross-shard communication and consistency
Data shardingBlob data for rollups is spread across nodesMaking sure data is truly available

State sharding offers the largest scaling gains but is the hardest to build safely, because contracts and accounts on different shards must interact.

The Security Trade-Off

If a network has 1,000 validators split across 10 shards, each shard has about 100 validators. An attacker might need to control only a fraction of one shard's validators to cause damage there, rather than a fraction of the whole network.

Designs address this in several ways:

  • Random assignment so attackers cannot choose which shard they validate.
  • Frequent reshuffling of validators between shards.
  • Shared security, where a main chain verifies shard results and can penalize misbehavior.
  • Fraud or validity proofs that let others challenge or verify shard outputs.

Read what is a 51% attack to understand why validator concentration matters.

Cross-Shard Communication

When a transaction involves accounts on two shards, the shards must exchange messages. This usually happens asynchronously: one shard processes its part, then sends a receipt that the other shard processes later. That can make cross-shard transactions slower and more complex for developers, and it is a source of bugs if not designed carefully.

Ethereum's Path: From Execution Sharding to Data Sharding

Ethereum originally planned to split execution across many shard chains. Over time, its developers concluded that rollups, layer-2 networks that execute transactions off the main chain and post data back to it, could deliver scaling sooner. The roadmap shifted to a "rollup-centric" approach.

Instead of sharding execution, Ethereum is pursuing data sharding, often called danksharding, to give rollups cheap space to post data. The first step, proto-danksharding (EIP-4844), was introduced in the Dencun upgrade in March 2024 and added "blobs," a cheaper temporary data format for rollups. Read rollups explained and data availability layers explained for more.

Other Networks Using Sharding

  • NEAR Protocol uses a sharded design called Nightshade, in which shards produce "chunks" that are combined into a single block.
  • MultiversX (formerly Elrond) uses adaptive state sharding, adjusting shards based on network demand.
  • Polkadot connects many parallel chains, called parachains or rollups, to a relay chain that provides shared security, sometimes described as heterogeneous sharding.

Each design makes different trade-offs between speed, complexity and security.

Sharding vs Other Scaling Approaches

ApproachHow it scalesTrade-off
Bigger blocksEach node does more workHigher hardware requirements, fewer node operators
ShardingWork split across node groupsComplexity, per-shard security
Rollups (layer 2)Execution moved off-chain, data posted to layer 1Bridge, sequencer and upgrade risks
SidechainsSeparate chain with its own validatorsSeparate, often weaker security

Why It Matters to Users

Most users never interact with shards directly. But sharding affects fees, speed, the security assumptions behind a network and how apps behave. When you evaluate a "sharded" or "infinitely scalable" network, ask how validators are assigned to shards, how cross-shard transactions work and what happens if one shard is attacked.

Bottom line

Sharding scales a blockchain by splitting work into parallel pieces so no single node has to do everything. It can raise capacity significantly but introduces real complexity and security trade-offs, especially for cross-shard activity. Ethereum now uses data sharding to support rollups, while networks like NEAR and MultiversX shard more directly; in every case, the design details determine how safe the scaling really is.

Vanliga frågor

What is sharding in blockchain?

Sharding is a scaling technique that splits a blockchain's workload into smaller parts called shards. Each shard processes its own subset of transactions or data in parallel, so the network as a whole can handle more activity than if every node had to process everything.

Does Ethereum use sharding?

Ethereum dropped its original plan to shard transaction execution. Instead, its roadmap focuses on rollups for execution and on data sharding, often called danksharding, to give rollups more cheap data space. A first step, proto-danksharding, was introduced in the Dencun upgrade in March 2024.

What are the risks of sharding?

Each shard is secured by a subset of validators, so an attacker may need fewer resources to compromise one shard than the whole network. Sharded designs also make communication between shards more complex, which can slow cross-shard transactions and introduce bugs. Good designs use random validator assignment and shared security to reduce these risks.

Which blockchains use sharding?

Several networks use forms of sharding, including NEAR Protocol with its Nightshade design and MultiversX with adaptive state sharding. Polkadot's parachains are sometimes described as a form of heterogeneous sharding. Ethereum is pursuing data sharding to support rollups.

Den här artikeln är enbart utbildande och utgör inte finansiell, juridisk eller skattemässig rådgivning. Krypto är volatilt och du kan förlora pengar. Kontrollera livepriser och projektdetaljer på varje mynts sida innan du agerar.