- docker installed
- docker-compose installed
- hyperledger fabric v1.4.8 docker images
$ bash start.sh
$ docker exec -it chaincode bash
jump to smart contract path.
$ cd chaincode/chaincodename
$ go build -o chaincodeName
$ CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincodeName
$ peer chaincode install -p chaincodedev/chaincode/chaincodeName/ -n mycc -v 0
# this chaincode init functuin no args
$ peer chaincode instantiate -n mycc -v 0 -c '{"Args":["init"]}' -C myc
# debug function ...
$ peer chaincode invoke ...