Taxonomy Icon

Blockchain

Run blockchain technology on a Linux mainframe

Get the code Watch the Tech Talk

Summary

The Linux Foundation’s Hyperledger Project is an open source blockchain initiative designed specifically for business, enabling developers to re-invent transactional business processes. One component of the project, Hyperledger Composer, aligns business requirements with technical expertise through a business-centric abstraction. This developer shows you how to use Hyperledger Composer and its business network model, tools, and editors to write, deploy, and test chaincode on LinuxONE.

Description

Blockchain technology is growing fast. According to one article, $1.4 billion was invested in blockchain technologies in 2016 alone. Estimates show that by 2024, the global blockchain market is expected to be worth $20 billion and that for 2017, the average investment in blockchain projects is $1 million.

With so many resources being poured into blockchain technology to drive it forward and create new offerings, it’s hard to know where to begin and how to integrate blockchain with existing business processes. This developer pattern shows you how to start to implement the development/business integration. You’ll learn how to use Hyperledger Composer’s development tools, including Node.js, npm, CLI, and popular editors, to create a development environment for Hyperledger Fabric, a blockchain framework implementation. In the environment setup, you’ll create a small business network running Hyperledger Fabric v1.0.

The environment runs on LinuxONE technology. Yes, it can run on various platforms, but LinuxONE was chosen because of the isolation, availability, scalability and encryption it provides. Running a blockchain network on LinuxONE can produce performance gains while decreasing security risks through cross-memory communication to existing Systems of Record (for example, SCM or ERP) or transactional middleware (such as CICS®, IMS™, DB2®, or batch systems).

You’ll register for guest access to the LinuxONE Community Cloud, run a script that creates your environment, and then interact with Hyperledger Composer and create and deploy a blockchain application. When you complete this pattern, you’ll have opened the door to blockchain development on the mainframe, a valuable combination for any developer to have.

Flow

flow

  1. The user requests access to LinuxONE Community Cloud so they can create a SLES Linux guest in which to run their environment.
  2. LinuxONE Community Cloud offers a variety of configurations. The user selects the configuration required to support the environment and start it. When this step is complete, the user logs into the system through SSH.
  3. The items required for the developer pattern, a setup script and a Hyperledger Composer business network artifact, are stored in a GitHub repository. To use them, the user clones the GitHub repository to the Linux guest local file system.
  4. The setup script calls DockerHub to pull down specific Hyperledger Fabric images. When the pull is complete, an npm install of Hyperledger Composer begins that will equip the guest with Hyperledger Composer and associated tools. When complete, the script installs and starts the Composer Playground, a browser-based user interface for Hyperledger Composer. The user also runs verification steps to become familiar with tooling and confirm all components are in place.
  5. After importing the business network archive file to the Composer Playground, the user begins developing chaincode. When the working chaincode is tested, the Composer Playground is connected to the running Hyperledger Fabric project through a Connection Profile. The user then deploys the chaincode to blockchain.