3. ***** NOTE
The starting point for any Go program is the main function, and hence it's
used for bootstrapping/starting the chaincode. When the peer deploys its
instance of the chaincode, the main function gets executed.
For example
func main() {
err := shim.Start(new(SampleChaincode)) // starts the chaincode
and register's it with peer IMPORTANT
if err != nil {
fmt.Println("Could not start SampleChaincode")
} else {
fmt.Println("SampleChaincode successfully started")
}
4. The Init method is called when the chaincode is first deployed onto the
blockchain
network and will be executed by each peer that deploys its own instance of the
chaincode.
This method can be used for any tasks related to initialization, bootstrapping,
or setup.