No Result
View All Result
Advertise
Submit a Press Release
Contact Us
Coindoo
  • Cryptocurrency News
    • All
    • Bitcoin News
    • Cardano News
    • Ethereum News
    • IOTA News
    • Litecoin News
    • Ripple News
    • TRON News
    Lumi Wallet

    Black Friday offer: Lumi Wallet Offers 12.5% Off Crypto Purchases

    Cryptocurrency Libra

    Everything You Need to Know About Facebook Cryptocurrency Libra

    Thailand

    Thailand SEC Plans to Adjust Existing Crypto Laws to Improve Growth

    Melnicki

    Ben Melnicki of Ripple Becomes Co-chair of Blockchain Association

    NANO

    Binance US Adds Support for Nano (NANO) Coin

    blockchain

    Can Bitcoin and Blockchain Help Avoid a New Financial Crisis?

    Trending Tags

    • ethereum
    • ripple
    • Tron
    • bitcoin
  • Analyzes & Reviews
  • Guides & Tutorials
    Dogecoin mining

    A Beginner’s Guide to Dogecoin Mining | 2019 Update

    fastest way to earn Bitcoins online

    What Is the Fastest Way to Earn Bitcoins in 2020

    how to avoid Paying Coinbase fees

    Learn How to Avoid Paying Coinbase Fees | Updated

    buy Bitcoin with PayPal

    How to Buy Bitcoin with PayPal | Beginner’s Guide

  • Events
No Result
View All Result
Coindoo
No Result
View All Result
Home Blockchain Guides & Tutorials

Blockchain 101: What Is Sharding in Blockchain?

Anca F. by Anca F.
May 19, 2019
in Blockchain Guides & Tutorials
blockchain

About Sharding

Sharding technology has appeared long before blockchain and has been used in a number of systems from business database. Sharding is a method which horizontally partitions data within a database. The database is fragmented into smaller parts called “shards”, and then they are put together to form the original database.

With blockchains, their network is made out of nodes which are connected peer to peer, which is not governed by one entity. The nodes store all states of the network and handle transaction processing. While this system is more secure, it does face difficulties with scaling as the network increases in size at a rapid pace. This problem is because the consensus only increases linearly.

When the network experiences such strains, the transaction costs and times increase significantly.

Sharding has been considered to be a complex solution to the scaling problem. By grouping subsets of nodes into shards, the system is able to process transaction in parallel which increases the volume it can handle.

Sharding-Based Blockchains

There are several blockchains for cryptocurrencies which have had sharding technology implemented in order to improve scalability and their transaction volume.

But blockchains using Proof of Work (POW) consensus algorithm cannot have sharding applied to them. Only blockchains that use Proof of Stake (PoS) consensus algorithm are able to use this technology. This is because this consensus algorithm features specific, designated nodes which handle only transaction validation.

How Does Sharding Work in Blockchains?

The best known blockchain to try to implement sharding is Ethereum. Their development team is working on introducing what is known as “state sharding”.

Sharding in Ethereum will be implemented in two phases, after the network will have switched to Proof of Stake protocol.

  1. Phase one is a data layer consisting of the consensus regarding the shard’s data.
  2. Phase two is the state layer.

The network is broken down into specific shards which have assigned a specific group of transactions determined by certain accounts and smart contracts.

Each transaction group is comprised of a header and a body.

The Header represents the shard ID of the transaction group which assigns validators through random sampling. Here is where the State Root can be found (state of the merkle root of the shard before and after transactions added).

The Body contains all of the transactions from the transaction group’s specific shard.

Transactions which belong to shard and can only take place between accounts of that particular shard. As transactions are verified, the entire network is updated. For the transaction group to be marked as valid, the pre-state root of the transaction group has to be the same as the global state’s shard root.

What is a Merkle Root?

Ethereum blocks contain in addition to a state root, a transaction group root as well. The transaction group root represents the merkle root of all of the transaction groups from certain shards. A merkle root of all of the different shards is comprised of the updated and verified transaction groups.

A merkle tree is used here to ensure the validity of the blockchain. A shard reaches consensus by applying a Proof of Stake algorithm to nodes selected at random which are applied to a shard for a specific consensus round.

A PoW sharded network requires a lot of hash power in order to be overturned, meaning that no malicious takeover can occur by the exclusive use of computational power.

 Cross-sharding communication

The communication protocol is vital to the sharding architecture functioning correctly in the system. You can think of the communication protocol as the universal language that is consistent among the states as part of the larger United States. However, designing this protocol is highly challenging and needs to be performed so that it is only used when necessary. It becomes necessary when a specific node requires information that is not stored within its own shard and needs to find the shard with the requisite information. This communication is known as cross-shard communication.

Transaction Receipts

This type of communication requires the appliance of a concept known as transaction receipts. The receipt of a transaction is kept in a merkle root which is not part of the state root, but can be easily accessed to be verified.

The shard which receives a transaction from another shard can then use the merkle root to verify ensure the receipt and its spending state, thus preventing double-spending. In simpler terms, the receipts are kept in an immutable shared memory which can be accessed by other shards to verify the transaction. This distributed storage of receipts enables shards to communicate with each other.

Disadvantages of Sharding

But sharding does not solve all the scaling and performance issues. One big disadvantage is that the communication between shards is quite difficult to achieve.

This is because when a user from one shard want to transact with another user from a different shard, this type of transaction would need another different protocol.

Conclusion

Sharding is one of the many solutions that have been proposed to solve the issue of scalability in blockchain networks. The results of sharding will not be visible at first to the end user or dapp developer, as it is a modification only at protocol level. But over time, sharding may improve network volume, lead to faster transaction times and lower transaction fees, which will overall make the platform function better on a larger scale.

Featured image: JOC.com

Tags: blockchaincryptocurrencydatabaseethereummerkle rootPOSPoWShardingtransaction
Anca F.

Anca F.

Hi, I’m Anca. You might’ve stumbled upon my literary creations while searching for stuff on the internet. I write mostly on topics related to tech, crypto and such (although there was a period in my life when I wrote sarcastic descriptions for bizarre Amazon products). When my ADD kicks in I turn sticky notes into Pikachus or pop bubble wrap.

Related Posts

blockchain developer

How to Write An Excellent Resume for Blockchain Developer Position

by Ionela C.
December 12, 2019
0

Blockchain developers are known to have a mix of skills in the areas of cryptography, algorithms, data structure, and computer...

cryptocurrency

The Top 4 Emerging Cryptocurrency Trends for 2020

by Ionela C.
December 12, 2019
0

After seeing a huge fall in valuation in 2018, the cryptocurrency market has nearly tripled in valuation this year. Major...

TRIBTC

TRIBTC Launches BTC P2P Binary Options Beta Platform

by Ionela C.
December 11, 2019
0

TRIBTC.com launched the world’s first platform offering peer-to-peer binary options trading for cryptocurrency pairs. The idea of creating this platform...

Blockchain

Why Students Should Study Blockchain Right Now

by Ionela C.
December 10, 2019
0

Students who choose to buy custom essays complete all their tasks without any stress. They have to work hard and...

Andrew Yang

Aspiring US President Andrew Yang Reveals His Plans for Cryptocurrencies

by Tony P.
November 19, 2019
0

The United States Presidential candidate, Andrew Yang, has detailed the plans he has to help in regulating the crypto assets...

Load More

We Recommend

Top Rated Casinos
Bitstarz Casino

1xBit Casino

BitcoinCasino.io
Top Rated Exchanges
Binance Exchange
Top Advertising Services
Coinzilla Display Network
Our Latest Reviews
Atomic Wallet Review

Atomic Wallet Review

Atomic Wallet is a cross-platform software wallet, which supports the storage
Abra Wallet review

Abra Wallet Review

Abra is a multi-crypto mobile wallet and exchange platform. It supports
BitMart exchange

BitMart Exchange Review

BitMart is a crypto exchange that supports a wide variety of
View All Reviews

Editor's Choice

ArbiSmart review
Blockchain Analyzes & Reviews

ArbiSmart Review: Best Crypto Arbitrage Platform

by Lavinia C.
December 10, 2019
0

MyCointainer: The Easiest Way to Make Crypto Earnings

Cryptocurrencies

UK Cryptocurrency: Best Reasons to Buy Cryptocurrencies

November 15, 2019
cryptocurrency online gambling

How Crypto and Blockchain Are Shaping the Online Casino Industry

November 6, 2019

5 Minutes of Blockchain & Cryptocurrency News!

We completely understand that your inbox is already full of junk emails. We promise that we gonna try to keep it clean by sending a daily newsletter with our latest news. You can always choose to unsubscribe to our newsletter if you're not satisfied.
coindoo icon
  • Contact Us
  • Advertise
  • RSS Feed
  • About Us
  • Partners
  • Terms & Conditions
  • Privacy Policy

© 2017-2019 Coindoo by Brantell Media.

The information on this website and the links provided are for general information only and should not constitute any financial or investment advice. We strongly recommend you to conduct your own research or consult a qualified investment advisor before making any financial decisions. We are not responsible for any loss caused by any information provided directly or indirectly on this website.

No Result
View All Result
  • Cryptocurrency News
  • Analyzes & Reviews
  • Guides & Tutorials
  • Events

© 2017-2019 Coindoo by Brantell Media.