Altcoins Guides

Altcoins

What is Audius?

What is Internet Computer?

What is Elrond?

What is VeChain?

What is Ethereum Classic?

What is Avalanche?

What is Brave’s Basic Attention Token?

What is Flow – the developer-friendly blockchain?

What is Chainlink and why does it matter in the crypto world?

What is the DAI stablecoin?

What is THORChain?

What is Tron?

What is Axie Infinity?

What is the FTX Token?

What is Klaytn and how does it work?

What is NEAR Protocol?

What is Polygon?

What is a non-fungible token (NFT)?

 What is Kusama – a canary network for Polkadot experiments? 

What is Zilliqa?

What is OMG network?

What is Terra?

What is Algorand?

What is Graph Protocol?

What is HIVE blockchain?

An introduction to the IOTA protocol

Five XRP wallets you should consider using

What is NEO cryptocurrency?

Three reasons why blockchain games are on the rise

What is the USD coin?

TrueUSD: Can it be trusted?

What is Skycoin?

Tezos for beginners

Bitcoin vs. Altcoins: The differences you should know

An introduction to Tether

The beginner’s guide to stablecoins

What is Dash cryptocurrency?

What is Cardano?

A beginner’s guide to blockchain

What is Litecoin?

What is Stellar cryptocurrency?

A beginner’s guide on how to mine Ethereum

A beginner’s guide to mining new altcoins

What is EOS?

What is Ripple?

Bitcoin Cash (BCH) for beginners

Ethereum (ETH) for beginners

Cryptocurrency terms for beginners

What is cryptocurrency?

A brief history of Ethereum

What is cryptocurrency mining?

The use of blockchain technology in digital advertising

A guide to the Ripple product suite

The top five privacy cryptocurrencies

Stablecoins: what are the risks and benefits?

The best GPUs for cryptocurrency mining

What are the best strategies for mining cryptocurrency?

A beginner’s guide to data mining and cryptographic hash functions

Understanding tokenomics

How to mine for cryptocurrencies

Why does decentralisation of cryptocurrencies matter?

What is a Mining Pool?

What is Hash Rate?

What is a smart contract?

What is Proof of Work?

How network nodes are used in cryptocurrency

Four projects leading the way in database sharding

Explore other guides

Advanced

Four projects leading the way in database sharding

We explore into the most promising projects using database sharding, including Ethereum, NEAR, Polkadot and Zilliqa.

Sharding is a clever way to address both the network latency and bandwidth problems, which clearly constrict blockchain’s scalability. It is well worth exploring the benefits of sharding and how it can improve some of the limitations of blockchain.

There are two major versions of sharding being used.

  1. Partitioned sharding, where shards don’t communicate with each other directly through a central relay
  2. State sharding, where shards communicate with each other through a state, or central, relay

There are quite a few interesting projects working on alternative implementations of sharding technology. We explore the four leading projects below.

Ethereum NEAR Polkadot

Zilliqa

Sharding

type

State State State

Partitioned

Name

Beacon Chain TxFlow Parachain BFT sharding

Benefits

Partition linearly reduces the requirement on all compute power, storage, and network bandwidth Partition linearly reduces the requirement on all compute power, storage, and network bandwidth Computations performed by each shard are inherently independent, increased network capacity.

Exponential scalability increase due to increased processing power and distribution of information.

Risks Lower data availability,  cross-shard transactions required to validate data Lower data availability,  cross-shard transactions required to validate data Lower data availability and security due to disperse mining, no way to validate date between shards

Processing payments becomes very complex once the state is shared among shards, Dapps won’t execute transactions that affect the same smart contract in parallel

Ethereum’s Beacon Chain

The Beacon Chain is part of the Ethereum 2.0 Serenity roadmap. The Beacon Chain is the “main chain” of the Ethereum’s upcoming Casper PoS system and its main responsibilities are to:

  1. Store and maintain the set of active, queued and exited validators
  2. Process crosslinks
  3. Process its own block-by-block consensus, as well as the finality gadget

The key function of the Beacon Chain is to manage the proof-of-stake protocol for itself and all of the shard chains. There are a number of aspects to this, including:

  • Managing validators and their stakes
  • Nominating the chosen block proposer for each shard at each step
  • Organising validators into committees to vote on the proposed blocks
  • Applying the consensus rules
  • Applying rewards and penalties to validators
  • Being an anchor point on which the shards register their states to facilitate cross-shard transactions

NEAR sharding

NEAR’s primary goal is to create almost real-time cross-shard transactions while keeping clients sufficiently light. Any low-end device should be able to run a node that operates a part of the network and processes a subset of the transactions. NEAR is a sharded proof-of-stake blockchain, highly scalable, and their approach allows nodes to run on low-end hardware, giving the network access to billions of additional devices, each of which makes it even faster.

The main problems are ensuring data validity and availability . Blocks are meant to be accompanied with a proof of validity that remains available to anyone to check for at least a certain period of time. Validators are responsible for ensuring the proof remains available. Unfortunately, it’s not possible (or at least very difficult) to prove that messages which were supposed to be sent haven’t been, without moving the message on-chain. The only way found to circumvent this issue is by having a more centralised infrastructure and governance setup.

Polkadot’s Parachain

In order to achieve an effective distributed database sharding, Polkadot uses a technology called Parachain.

A parachain (parallelisable chain) is a simpler form of blockchain. It attaches to the security provided by a relay chain, rather than providing its own. A relay chain not only lends security to attached parachains, but also provides a guarantee of secure message-passing between them. One key feature of parachains is that the computations they perform are inherently independent. Fully generalised systems of turing-complete smart contracts run into issues in determining which transactions will collide with each other. This means transactions which could potentially be parallelised are often run in sequence, wasting valuable computation time. Drawing clear boundaries between parachains means that we can execute all of them at once without fear of collision . If we have 10 parachains, we can perform 10 times the work using the same source of security.

Highly-specialised parachains have another purpose. They can implement data storage and transaction operations in a most efficient manner for their problem domain, without being shoehorned into a blockchain-specific scripting language or virtual machine. It’s possible to create parachains which have their own parachains, and so on. This creates a tree-like structure that can be used to perform highly distributed computations – without reducing the overall burden on the root relay chain itself.

The main issues are also data availability and validity.

Zilliqa BFT sharding

The way Zilliqa is trying to implement sharding is through a completely different path than Ethereum. The way it’s implemented follows the below logic:

  1. Execute all the single-shard transactions in parallel
  2. Do not execute transactions that affect the same smart contract in parallel
  3. Do not execute any transaction that affects more than one shard in parallel with any other transaction

In essence, Zilliqa’s proposal does not use a central coordinator, however, it makes sApps needing to reside in most of the shards, taking away its key advantage.

Conclusion

As businesses look to improve on the limitations of blockchain, more projects that use sharding will come to light. By addressing scalability issues, blockchain will become more attractive to a greater audience and eventually take a further step towards mainstream adoption.

 

Disclaimer: The views and opinions expressed by the author should not be considered as financial advice. We do not give advice on financial products.