Nightshade Sharding: How Data Scales on Near

Sharding Visualization

Scalability is the primary bottleneck for legacy blockchains. If every node must process every transaction, the network can only move as fast as its slowest computer. Near Protocol addresses this with a proprietary sharding design called Nightshade.

Unlike traditional sharding (which splits the network into completely separate chains), Nightshade models the system as a single blockchain where each block allows for parallel "Chunks."

The Concept of "Chunks"

In Nightshade, a block is not a single list of transactions. Instead, imagine a block as a container that holds multiple "Chunks."

This means that Shard #1 does not need to know what is happening on Shard #2 to process its own transactions. They run in parallel.

Why This Improves Latency

Because the workload is split, the network can theoretically scale infinitely.

The Security Model

Critics of sharding often point to security risks (if one shard is small, it is easier to attack). Near solves this by randomly assigning validators to different shards every "Epoch" (approx. 12 hours). A malicious actor cannot predict which shard they will control, making coordinated attacks statistically impossible.