Created Date: 20 Aug, 2019
Last Modified: -- : --
Hyperledger Fabric
Smart Contract/ Chaincode
■ What's chaincode?
Before businesses can transact with each other, they must define a common set of contracts covering common terms, data, rules, concept definitions, and processes. Taken together, these contracts lay out the business model that govern all of the interactions between transacting parties. A smart contract defines the rules between different organizations in executable code. Applications invoke a smart contract to generate transactions that are recorded on the ledger.
Chaincode in Hyperledger Fabric is similar to smart contracts. It is a program that implements the business logic and is run on top of blockchain. The application can interact with the blockchain by invoking chaincode to manage the ledger state and keep the transaction record in the ledger. This chaincode needs to be installed on each endorsing peer node that runs in a secured Docker container. The Hyperledger Fabric chaincode can be programmed in Go, Node.js, and Java.
Every chaincode program must implement the Chaincode interface. In this recipe, we will explore chaincode implementation using Go.
■ Go programming language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
■ non-system/ system smart contract
Coming Soon ...
■ Lifecycle
Coming Soon ...
► Packaging and Signing
► Installation
► Instantiate
► Upgrade
■ Who can manage the smart contract
Coming Soon ...
https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html
https://hyperledger-fabric.readthedocs.io/en/release-1.4/commands/peerchaincode.html
https://medium.com/beyondi/how-to-deploy-chaincode-in-hyperledger-fabric-7202204d0238