Course details

Smart Contracts & Hyperledger Fabric: Working with Fabric Chaincode in Golang

Smart Contracts & Hyperledger Fabric: Working with Fabric Chaincode in Golang


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this course, participants discover how to complete the provisioning of a Hyperledger Fabric network and to develop, deploy, and work with a smart contract coded in Go for their Blockchain projects. First, learn how to use the configtxgen tool to create the Fabric network’s first Genesis block and channel. Then in a two-part tutorial about the docker-compose file, you will define the certificate authority service for organization in the Fabric network and configure the network’s ordering service, peer, and state database services. Next, learn how to provision the Fabric network by creating a Hyperledger Fabric network using the configuration files and initializing a channel. Another two-part tutorial on writing chaincode in Go examines the Init method and coding the Invoke method and the different operations that can be called in a Go smart contract for the Fabric network. Then learn to install and instantiate the Go chaincode and invoke the operations defined in the contract. A concluding exercise describes Docker services, accessing the contract state in a smart contract, and deploying chaincode on a channel.



Expected Duration (hours)
1.1

Lesson Objectives

Smart Contracts & Hyperledger Fabric: Working with Fabric Chaincode in Golang

  • identify the subject areas covered in this course
  • use the configtxgen tool to create the Fabric network's first genesis block and channel
  • define the certificate authority service for the organization in the Fabric network
  • configure the ordering service, peer, and state database services for the Fabric network
  • create a Hyperledger Fabric network using the configuration files and initialize a channel
  • define the Init method in a Go smart contract for the Fabric network
  • code the Invoke method and different operations that can be called in a Go smart contract
  • install and instantiate the Go chaincode and invoke the operations defined in the contract
  • describe Docker services, access the contract state in a smart contract, and deploy chaincode on a channel
  • Course Number:
    it_bcbschdj_03_enus

    Expertise Level
    Intermediate