Research
/
Protocol research
Protocol research

NEAR: sharding to meet global demand

An assessment of how NEAR's sharding design is meant to scale with demand, and what it implies for validators, token economics and governance.

Justin Bons
·
Original · 9 May 2024
Historical research; the source preserves the original argument and publication date.
View original source.

1/21) NEAR can scale to meet global demand with sharding!

There are six shards delegated to 467 permissionless validators now 🔥

The cutting edge, working on stateless validation & dynamic load balancing!

ETH & SOL better stay sharp as NEAR will eat their lunch otherwise: 🧵

2/21) Even though NEAR sharding is not fully implemented

As all validators still validate all shards, it can still exceed 1k TPS, keeping up with SOL!

In a few years, as the roadmap comes to fruition, NEAR will likely be able to exceed 100k TPS

That is the power of sharding!

3/21) The key word here is "concurrency"

SOL achieves this within a single computer with parallelization (multi-threading)

Sharding takes this to the next level by splitting the workload between multiple computers!

Thereby preserving decentralization while increasing capacity

4/21) That is what solves the blockchain trilemma!

True horizontal scaling, unlocking TPS figures in the millions long-term

The trade-off is not security or decentralization; it is speed

Sharding introduces a few-second delay before finality due to cross-shard communication

5/21) That is why SOL does still make sense within this trade-off space

SOL has sacrificed capacity for speed

Sharded chains, like NEAR, EGLD & TON, sacrificed speed for capacity

That is why I lean more into sharding, but the trade-off is at least valid, unlike "L2 scaling"!

6/21) I do not care much for data availability for L2's sake

However, it is funny that NEAR offers more data availability at a cheaper rate than ETH!

The day will come when chains like NEAR will also be more secure

When that happens, there will be no reason left to use ETH!

7/21) NEAR also has a novel sharding implementation

As chunk producers do not create blocks in shards but instead add their chunks/shards into a single block

This helps with composability while still splitting the workload of state across multiple shards

A truly unique design!

8/21) NEAR's token economics are also excellent

Following a similar model to ETH by combining a fee burn with tail inflation

This, in my view, is the ideal economic design for a blockchain

As it combines long-term sustainability with the potential for even greater scarcity

9/21) NEAR governance, however, gives me pause for thought

I strongly dislike the governance design & more importantly, the direction they are moving into

As they are attempting to mitigate the power of large token holders

Throwing around terms like "one person, one vote."

10/21) This is the opposite of what they should prioritize, which is embracing stakeholder governance!

As blockchains are not democratic at all

The fact that NEAR is attempting to balance their design with democratic principles

In reality; severely weakens NEAR's governance!

11/21) This is because democratic design necessitates permissioned elements

As long as "Proof of Human" remains an unsolved problem

We can see this in NEAR, where joining a "working group" requires filling out a form!

Ignoring the fact that new submissions are closed as of now

12/21) NEAR does have an on-chain funded treasury!

This is an excellent, maybe even critical, mechanism that most chains lack

Creating an L1-biased source of funding that counteracts corrupting sources of funding

Unfortunately, it is still controlled by the foundation for now!

13/21) Making NEAR governance a mixed bag

This is where I remind people that no single chain meets all my criteria

Nothing is perfect & governance does tend to be the most underdeveloped area in most chains

I hope NEAR will bite the bullet on stakeholder voting in the future!

14/21) Another aspect I dislike of NEAR's design is the "dev fee"

This is where a portion of revenues goes back to whoever created that module of code

This, however, is most often programmed out of the contract

As this is not what the market wants; introducing inefficiencies!

15/21) The various critiques against sharding are weak as far as I am concerned

1. Single shards are less secure

Shards share the same security guarantees; a single L1 would

With the exception of DDoS attacks, which can be easily mitigated with a sufficient number of nodes

16/21) Because of the randomized validator shard assignment

An attacker cannot choose what shard they end up validating

Therefore, the only way to attack a single shard is by attacking the entire L1

As mathematically, the chance of dominating a single shard is negligible!

17/21) 2. sharding breaks composibility

This is also not true, as perfect composability is maintained between all shards due to the enshrined nature of the design

As all shards are identical & part of the same consensus mechanism; native interoperability mechanisms are possible

18/21) This is exactly what NEAR does with cross-shard TX's!

Introducing a few-second delay is not the same as breaking composability

That is also why full & seamless interoperability between L2s is impossible

As you are dealing with different rule sets & power blocks there!

19/21) NEAR is behind some of the competition

As EGLD & TON have fully implemented sharding

This is because of some of the added design requirements along the way

Like stateless validation, which will ultimately help a full-sharded chain a lot

But it is still a race after all

20/21) The multi-billion dollar question is whether the NEAR team will remain focused on the main goal

L1 scalability through sharding!

There are reasons to be concerned as they are behind in the roadmap while working hard on other new advanced features

Such as DA & ZK-proofs

21/21) Would love to hear more from the NEAR community about priorities

As I love NEAR, all in all, it is a fantastic blockchain!

Clearly on the cutting edge, while BTC & ETH remain in the stone age

Ignore NEAR at your own peril, as it clearly represents the future of crypto!