Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Top 3 Platforms for Successful Smart Contract Development

DZone's Guide to

Top 3 Platforms for Successful Smart Contract Development

A brief look at what smart contracts are and three great platforms that developers can use to create their own smart contracts.

· Security Zone ·
Free Resource

Discover how to provide active runtime protection for your web applications from known and unknown vulnerabilities including Remote Code Execution Attacks.

Many companies strive to leverage blockchain and smart contracts. According to 2017 Accenture research findings, investment banks alone could save up to $12 billion per year by adopting blockchain and smart contracts. According to Gartner estimates, more than 25% of global organizations will use smart contracts by 2022.

Companies like IBM and Microsoft offer blockchain solutions and smart contract development to enterprise clients. However, those solutions, too, call for customization. This means the demand for distributed ledger developers is only going to grow.

What Is a Smart Contract?

A blockchain-based smart contract is a piece of self-executing code on a distributed ledger platform that automatically enforces the terms of a multi-party agreement. To execute a smart contract, a computer network uses consensus protocols.

Consensus may be achieved either on the ledger level (among all members of the blockchain) or on a transaction level (among participants of a specific transaction).

These transactions are immutable and can be traced back.

How smart contracts work?Here are some reasons why companies adopt smart contracts:

  • Secure
  • Cost-efficient
  • Fast
  • Automated
  • Precise
  • Irreversible
  • Autonomous
  • Decentralized

Smart contracts are applicable to a variety of industries, from gambling to logistics to insurance to banking to healthcare, and more. Currently, there are three key platforms for smart contract development:

  1. Hyperledger Fabric
  2. Ethereum
  3. R3 Corda

Development for each platform requires different engineering expertise: solidity for Ethereum developers, Golang and Java for Hyperledger Fabric, and Kotlin and Java for R3 Corda. Also, programmers must have good knowledge of API development.

At N-iX, there are two ongoing projects for financial services industry, where our development teams work with two of the three platforms mentioned. From this experience, we can certainly tell that smart contract developers are hard to find and expensive to hire.

For instance, only around 175,000 professionals across the world mention smart contract development as their expertise on LinkedIn. The resources for learning smart contracts are rather limited, too.

Key Platforms for Smart Contract Development

Hyperledger Fabric

Hyperledger Fabric is one of Hyperledger projects hosted by the Linux Foundation. Its modular architecture allows components to be used on a plug-and-play basis. Consensus and membership services are examples of such services.

The flexibility of Fabric's modular architecture allows developers to customize distributed ledgers to a multitude of industries, including financial services, supply chain, healthcare, education, and many more. Let's sum up some of Fabric's great features:

  • The Hyperledger network is permissioned, and a consensus has to be reached at a transaction level (not the ledger level). Thus, it is more scalable, fast, and efficient than public blockchains.
  • Hyperledger Fabric allows for confidential agreements, so only direct participants of the agreement can access the data about the transaction.
  • Hyperledger Fabric leverages container technology to host smart contracts. The technology is called “chaincode.”
  • Fabric uses Byzantine fault-tolerant (BFT) algorithms to prevent system failures.
  • Hyperledger nodes have different roles and tasks, such as endorser, committer, and consenter.

Programming languages: Go, Java.

R3 Corda

The solution is used only in the financial services industry, as it is permissioned and provides good scalability and privacy. It uses Byzantine fault-tolerant (BFT) algorithms to exclude component failures. Consensus over uniqueness is reached among participants called notary nodes. This trait greatly speeds up the execution of transactions.

In Corda, smart contracts are allowed to contain legal prose, called smart legal contracts. It uses a Ricardian Contract (a method of recording a document as a contract at law).

Programming languages: Kotlin, Java.

Ethereum

Smart contracts on Ethereum are designed to be Turing-complete, which means the platform can compute anything computable if enough resources are provided. However, it creates the ground for criticism as it may be too inflexible, unsafe, and unpredictable.

A consensus is reached through mining and Proof of Work, at the ledger level. Thus it is shared among all the participants in the ledger.

Ethereum smart contracts are enforced and validated by computers that are called miners. Other participants pay these miners with something called gas. This is the unit by which a degree of difficulty of computational efforts is measured. It also defines the cost to run a contract. Different contract’s operations might require a different amount of gas which is then transferred in Ether.

Programming language: Solidity

Smart contract development for Ethereum

Find out how Waratek’s award-winning application security platform can improve the security of your new and legacy applications and platforms with no false positives, code changes or slowing your application.

Topics:
blockchain ,ethereum ,hyperledger fabric ,smart contracts ,security

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}