Build your first blockchain application  

Build a complete blockchain application on Hyperledger Fabric using Hyperledger Composer

Last updated | By Ishan Gulhane

Description

Blockchain is an open, secure, distributed ledger that verifiably and permanently records transactions between parties. This composite developer journey, comprising multiple more granular developer journeys, will get you started with building a Hyperledger Fabric blockchain application.

Overview

Blockchain is changing the way businesses conduct transactions. This secure, distributed, and open technology is lowering costs, speeding up processes, and building a new level of trust in secure interactions. When something as big as blockchain emerges, developers who understand and can implement the technology are in the driver’s seat. But first you have to learn it.

For anyone wondering how to get started with blockchain, this developer journey is for you. This journey is a composite, comprising a set of granular developer journeys that take you through the process of building a working blockchain application step by step.

Start with the first journey in the series, Build a blockchain network, in which you’ll learn how to create your first blockchain network using Hyperledger Composer. You’ll create a Business Network Archive (BNA) file that enables you to define a model; for example, the participants, tradeable assets, and allowable transactions. You’ll then deploy the network on Hyperledger Fabric, the blockchain framework implementation hosted by the Linux Foundation. For this journey, you’ll run Hyperledger Fabric locally.

Next, move on to Create and execute blockchain smart contracts. As the name suggests, you’ll build a smart contract that defines the “who” and “what” with respect to managing transactions. You’ll learn how to add multiple participants and add access control to your blockchain application by creating an interactive, distributed, product auction demo network. You’ll get an introduction to access control lists, which control sharing and privacy and are automatically enforced by the Hyperledger Fabric Composer runtime.

When you complete the developer journeys in this series, you’ll discover how useful a tool Hyperledger Composer can be. It gives you the ability to quickly model your current business network, including your existing assets and the transactions related to them.

This is your chance to climb on the blockchain train and build the skills that every business will need. Watch for additions to this blockchain series. Work your way through the full composite developer journey and make yourself indispensable!

Flow

  1. Build a blockchain network
    1. Install the Network Dependancies: cryptogen, configtxgen, configtxlator, peer
    2. Configure the network:
      i) Generate the network artifacts.
      ii) Start the network.
  2. Create blockchain smart contracts
    1. Install and instantiate the chaincode.
    2. Query and invoke the chaincode.
    3. View transactions and chaincode logs.

Related Patterns

Build a blockchain network

Get started with blockchain technology by learning how to build a blockchain network using Hyperledger Composer.


Create and execute blockchain smart contracts

Use the Hyperledger Composer framework to create and execute smart contracts within a blockchain application built on Hyperledger Fabric.


Related Blogs

blockchain4business bootcamp in Munich

Blockchain4Business was a bootcamp which took place from 15th – 18th July 2018 in Munich, Germany. This was the third event of its kind, designed for individuals and companies interested in hands-on learning and hacking of Hyperledger Fabric applications. This four-day event was organized by the Frankfurt School Blockchain Center, 21.digital, the Johannes Gutenberg University...

Continue reading blockchain4business bootcamp in Munich

Two “edgy” AI TensorFlow models for you!

The global Call for Code is well underway, we want to share some visual recognition models which could help you. These AI models can operate on the edge, which could be particularly useful for this years’ theme: disaster preparedness. How could visual recognition help in relief work? From satellite and drone imagery analysis, to classifying...

Continue reading Two “edgy” AI TensorFlow models for you!

Leveraging the power of AI at Unite Berlin

Last week, from June 19 – 21, we were at Unity’s premiere in Berlin: Unite 2018. This conference brought together Unity’s video game and development community. Unity touches 770 million gamers all over the world and is the market leader for consumer AR and VR use cases and is also rapidly emerging as the market...

Continue reading Leveraging the power of AI at Unite Berlin

Related Links