INTRODUCTION: BLOCKCHAIN TECHNOLOGY AND ESCAPADES OF CHALLENGES BEING FACED : HARMONY A SOLUTION.
Since the creation of the blockchain in 2008, there have been series of world changing developments, tis has become the beginning of a new dawn and technological era. However, decentralized money and applications are becoming well-publicized ideas, design limitations have challenged the core aspiration of Bitcoin.
Of a truth, possibilities and application were stretched, but still being inadequate, solutions like IOTA was initiated to bring a bridge in the processing of transactions. However, this ensured that compromises had to be made with regards to security and decentralisation-which are core features of the blockchain industry.
Its a fact that Proof-of-stake blockchains, unlike proof-of-work blockchains, tend to suffer from long-range attacks .
These are attacks that leverage the fact that proofs are based on signatures rather than on resource-intensive tasks. In a long-range attack, the private keys of honest validators are stolen long after they have been used, and the attacker is able to create a forked blockchain by signing fake blocks with those keys.
INTRODUCING HARMONY
Harmony is a fully scalable, provably secure sharding based blockchain. It is also energy efficient, and takes into cognisance the challenges its predecessors faced. This knowledge is being used to ensure that its system is optimally tuned. It makes use of distributed randomness generation, which ensures that its system is not biased, and is also unpredictable, scalable, and verifiable.
Other features of Harmony:
Efficient and Fast Consensus: Makes use of Proof of Stake. Uses a linearly scalable BFT algorithm that is a hundred times more faster than PBFT (Practical Byzantine Fault Tolerance).
Adaptive-Thresholded PoS: Prevents malicious stakers from being able to hijack the system. Small players are able to still benefit from the system.
Scalable Networking Infrastructure: Making use of RaptorQ fountain code ensures that Harmony can propagate blocks quickly within shards or across network by employing the Adaptive Information Dispersal Algorithm.
Consistent Cross-Shard Transactions: Communication between shards is directly and in a consistent form.
Harmony ensures that the use of blockchain technology can be extended, and applications that werent possible, such as interactive fair games, high scale payment systems, IoT transactions and high volume on-chain exchanges can exist, meeting the needs of billions of people.
CONSENSUS MECHANISM
Consensus Protocol is extremely important, because it is responsible for determining when blockchain validators reach consensus on the next block, and also how securely this is achieved.
Bitcoin makes use of the proof of work (PoW) consensus. This basically assumes that at the very least, a greater portion of hashing power is controlled by honest nodes.
With regards to PBFT, one node is positioned as the lead, while others are validators. Here, the lead broadcasts its proposal to the validators who share it with every other person, in order for votes to be noted. It also involves a commit phase.
On Harmony, rather than broadcasting votes, the lead deploys a multi-signature signing process to collect all votes. Rather than receiving votes, validators receive just one multi-signature. This saves time, energy and shortens the communication trail. This consensus protocol is known as Fast Byzantine Fault Tolerance (FBFT).
DISTRIBUTED RANDOMNESS GENERATION
This has been recognised as the most secure solution among sharding solutions. Here, a random number agreed to by parties involved, is used in determining sharding assignments for each node. Random numbers must be unpredictable, unbiasebale, verifiable, and scalable.
EPOCHS
The concept of Epochs is used in handling the consensus and sharding process.
SHARDING
Since the last quarter of 2017, several sharding technologies have been proposed. Ziliqa set the pace by delivering a throughput of 2800tps. Other solutions like Omniledger and RapidChain have worked on solutions that make use of state sharding, ensuring that each shards holds a subset of the state of the blockchain.
Following the progress made by these solutions, Harmony took it a step further, and designed a POS-based full sharding scheme. It has a beacon chain and multiple shard chains.
STAKING-BASED SHARDING
Validator Registration
To become Validators on Harmony, those that are interested will have to stake a set amount of tokens to be considered.
The number in question will be determined by number of voting shares assigned to the Validator. One voting share is equal to one consensus vote.
Voting Shares
Voting shares ensure that users can cast one single vote each, in a consensus. Preventing large-stake attacks is done by making use of sharding by voting shares. Validators with bigger stakes stand a higher chance of being selected as the Leader.
RESHARDING
When a shard remains static, malicious attacks can still occur by the validators in that shard being corrupted. Types of attacks that exist are static round adaptive, slowly adaptive and fully adaptive. To fight this, Harmony makes use of the Cuckoo-rule based resharding mechanism. Withdrawing ones stake before the end of an epoch guarantees eviction.
FAST-STATE SYNCHRONISATION
Joining a new shard ensures that validators are brought up to speed with the state of that shard via synchronisation. Downloading the blockchain history and reconstructing is archaic. Current state download within the time window is much more attainable.
SHARD CHAIN AND BEACON CHAIN
Shard chains are blockchains that have the ability to process and validate their transactions, while storing its state. Shard chains are independent to a great degree, but they also carry out cross-chain communication via cross-shard communication. cross-shard communication ensures that capabilities can be extended.
Beacon chains are also shards, however they go a step further by being responsible for the random number generated and accepting stakes from validators.
BLOCKCHAIN STATE SHARDING
On Harmony, each shard has its own account state, while all tokens are spread across shards. User accounts and smart contract accounts are handled separately, as regards sharding.
NETWORKING
To make sure that network failure is not prevalent, efficiency of network utilisation is a primary focus of Harmony, and proposes a number of improvements to deal with real-world networking scenarios.
INCENTIVE MODEL
Harmony ensures that rewards for validators that signed the block are rewarded via tokens that are commensurate to their voting shares.
When it is determined that foul play occurred, some tokens will be deducted from the amount to be allocated. Validators are encouraged to expose cheats. When such has been proven to be true, deducted tokens will be given to them. These are some of the factors that make Harmony a much better solution than the competition.
USE CASE
Mr Kelvin has an investment company, and there have been cases of fraud either through hackers or errors in transactions of the company and this has brought so much concern and uproar.
The team knew that they were not performing efficiently, and this was a headache, seeing they wanted their platform to run on decentralised channels. Numbers of investors were dropping fast, until they had a test-run on Harmony. Now they have a sense of stability, and are glad they can simply focus on creating a community their users deserve, a community free from fraud and complexities.
SUMMARY
When Harmony is made use of, teams will not need to sacrifice one important feature for another. Eg. Scalability for security, security for flexibility. Teams are able to build their projects on a solid foundation that is unpredictable and highly scalable. Knowing that features are put in place to remove unfairness and malicious attacks, teams are able to focus purely on building their products.
Studying what worked and why they worked as well as what the shortcomings of their predecessors were ensures that Harmony is able to build something that will be much more robust and effective in meeting the needs of the worlds diverse population.
Harmony is setting high standards which will enable blockchain technology grow, and value can be transferred in multiple forms, thanks to this shift put in by the Harmony team.
For more information, visit :
https://harmony.one/