Posts

Hyperledger Development with in 10 days — Day 6

Image
Chaincode Development Introduction For the first five days, we have seen the concepts of Hyperledger fabric and various components of it. We have started our own network, deployed the simple smart contract. We have done transactions, we transferred data privately. In this part we are going to look into Chaincode development aka smart contract development for Hyperledger Fabric. We know that chaincode is running in different docker container once it is instantiated on channel isolating from the peers. Typically smart contract is the business logic agreed by the members to execute with consensus. However within the same network multiple many chaincode might be running on different channels. “Without appropriate permissions a chaincode cannot invoke another chaincode”. Various levels of Chaincodes There are two perspective on chaincodes. First, the perspective of the developer who is developing blockchain application — Chaincode for developers Second, the bl...

Hyperledger Development with in 10 days — Day 5

Image
In the last part, we have seen the shell scripts creating the network using the Hyperledger platform. In this part we are going to see the manual command execution to setup the Fabric blockchain network. Below are the steps executed by the shell script for us. We have seen “generating the certificates” as the important step Then create the “orderer genesis block” Define Organisations anchor peer Start your network Then “create a channel” Join peers to the channel Install and Instantiate the chaincode in the peers Query the chaincode Now, we are going to execute commands manually in the terminal and achieve the same again. Prerequisites We have already downloaded the Hyperledger Fabric samples into our machine. In last part, we have worked on the  fabcar  directory and  fabcar application. In this part, we are going to split the “ first-network”  directory for the network setup. Let’s open the directory now in a terminal as well as i...

Hyperledger Development with in 10 days — Day 4

Image
We had successfully setup the fabric network and ran a simple application on it. Today we are going to see the step by step configuration to set up the network. How to deploy the smart code to the network will be explained in this part. “Make sure all the prerequisites steps are done” We have already downloaded the Hyperledger Fabric samples into our machine. In last part, we have worked on the fabcar directory and fabcar application. In this part, we are going to split the “ first-network”  directory for the network setup. Let’s open the directory now in a terminal as well as in editor. Start the network We can see a file named  byfn.sh  shell script. This shell script uses the Docker images to quickly bootstrap the Fabric network comprised of 4 peers belongs to two different organizations, and an order now which is used to create blocks in the fabric network. This script also joins the 4 peers to channel which is used to do transactions...