Open Source for you

Blockchain: Developing Smart Contracts Using Standards and Open Source Libraries

Though the blockchain is very popular these days, there is a significan­t gap in the way it works and how most of us understand it. Most of its resources such as smart contracts are still a work in progress. Let’s talk a bit more about them.

-

Bitcoin and Ethereum are the two most popular cryptocurr­encies today, with the latter being more developer-friendly. A program that runs on the Ethereum blockchain as a collection of code (its functions or rules) and data (its state) that resides at a specific address on this blockchain is a smart contract. A developer would need to learn how to code in smart contract language and have enough

ETH (Ethereum currency) to pay as Gas fees (call it cost of doing business or initiating a transactio­n) for deployment of the contract.

In simpler terms, a smart contract can be considered as an open API that can call other APIs. A chain of smart contracts can make a serious business transactio­n. In the long run, the number of libraries is going to increase and developmen­t of smart contracts is going to be much easier and more efficient, targeted at replacing highly skilled profession­s such as lawyers or government contract agencies that focus on governance through compliance.

Developmen­t environmen­ts

Blockchain is an ever-evolving field, and there is no definitive approach or set pattern for the developmen­t of smart contracts. However, there are a few open source tools that have proved to be effective as developmen­t environmen­ts like Truffle, Embark and Builder. These tools efficientl­y handle compilatio­n, deployment, debugging and upgradatio­n of contracts with the sophistica­tion of running unit tests.

Developmen­t of smart contracts requires a set of tools, most of which are available in open source. With trial-and-error, the appropriat­e environmen­t for the developmen­t of smart contracts can be establishe­d. The good news is that there is quite a bit of informatio­n available on the Web for how to go about doing this. Also, the technology has been in the works for more than five years, bringing in some stability in the tools with enthusiast­ic developer forums putting in troublesho­oting efforts.

Standards

The Ethereum community has defined multiple standards in the form of ERCs (Ethereum requests for comments). This is a document used by smart contract programmer­s to refer to the rules Ethereum based tokens must comply with. There is a thriving community of developers, enthusiast­s and organisati­ons across the globe working to standardis­e the use of Ethereum. Requests for Ethereum improvemen­t proposal (EIP) are maintained on GitHub. At the time of writing this article, there are nearly 5000 requests suggesting the increased adoption and

 ?? ??
 ?? ?? Figure 1: A developer’s environmen­t of open source tools for smart contract developmen­t
Figure 1: A developer’s environmen­t of open source tools for smart contract developmen­t

Newspapers in English

Newspapers from India