chaingo
Hyperledger fabric chaincode development framework

Description
Chaingo provides helpful utilities and modules for developing Go chaincode on hyperledger fabric.
Quickstart
Install library and binaries
# NOTE: you should have `$GOPATH/bin" in your path`
mkdir -p $GOPATH/src/github.com/dimkouv && cd $_
git clone https://github.com/dimkouv/chaingo
go install ./cmd/...
Generating a new chaincode
mkdir chaincodes
chaingo -o startapp -n MyCoolChaincode
The command above produces the following files
mycoolchaincode/
- app.go # chaincode definition
- app_test.go # test cases
- functions.go # smart contract logic
- models.go # definitions of models
- routes.go # definitions of available invocations
Check examples/votingapp for a working example.