なぜか分からないけど、githubの場合には全部小文字、ローカルの場合には小文字大文字区別するみたい。
githubから取得する場合
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
\"jsonrpc\": \"2.0\",
\"method\": \"deploy\",
\"params\": {
\"type\": 1,
\"chaincodeID\": {
\"path\": \"https://github.com/kkoiwai/consentform\"
},
\"ctorMsg\": {
\"function\": \"init\",
\"args\": [
]
}
},
\"id\": 0
}" "127.0.0.1:5000/chaincode"
ローカルで取得する場合( $GOPATH/src/下のディレクトリ )
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
\"jsonrpc\": \"2.0\",
\"method\": \"deploy\",
\"params\": {
\"type\": 1,
\"chaincodeID\": {
\"path\": \"github.com/kkoiwai/ConsentForm\"
},
\"ctorMsg\": {
\"function\": \"init\",
\"args\": [
]
}
},
\"id\": 0
}" "127.0.0.1:5000/chaincode"