Shard

A shard is one partition of a sharded blockchain: a portion of the network's state and transactions that a subset of nodes processes and stores in parallel with other shards. Splitting the work this way lets the whole network handle more activity.

In an unsharded blockchain, every full node processes every transaction and stores the complete state. Sharding divides that work. Each shard keeps its own portion of accounts, smart contracts and transaction history, and a group of validators assigned to it checks and produces its blocks. A coordinating layer, often a main chain or beacon chain, ties the shards together so they share security and can pass messages between one another.

For most users, shards are largely invisible. An account or contract lives on a particular shard, and transactions within a single shard can be processed efficiently. Interactions that span shards, such as sending tokens to an account on another shard, rely on cross-shard messaging, which can add delay and complexity. NEAR Protocol is a well-known example of a live network that splits its state across multiple shards.

The main security concern is that each shard is protected by only part of the total validator set. An attacker might therefore find it easier to take over one shard than the whole network. Sharded designs counter this by assigning validators to shards randomly and rotating them regularly. A common misconception is that Ethereum runs shard chains. Its earlier plan for many separate shard chains was replaced by a rollup-centric approach, in which "danksharding" refers to providing extra data space (blobs) for rollups rather than creating separate chains that execute transactions.

Learn more

Related terms