├── .github ├── dependabot.yml ├── settings.yml └── workflows │ ├── pull_request.yml │ ├── scan.yml │ ├── schedule.yml │ ├── test.yml │ └── vulnerability-scan.yml ├── .gitignore ├── .golangci.yml ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── MAINTAINERS.md ├── Makefile ├── README.md ├── SECURITY.md ├── doc.go ├── go.mod ├── go.sum ├── pkg ├── attrmgr │ ├── attrmgr.go │ └── attrmgr_test.go ├── cid │ ├── README.md │ ├── cid.go │ ├── cid_test.go │ └── interfaces.go └── statebased │ ├── interfaces.go │ ├── statebasedimpl.go │ └── statebasedimpl_test.go └── shim ├── batch.go ├── chaincodeserver.go ├── handler.go ├── handler_test.go ├── interfaces.go ├── internal ├── client.go ├── client_test.go ├── config.go ├── config_test.go ├── mock │ ├── client_stream.go │ └── peer_chaincode_stream.go ├── server.go └── server_test.go ├── response.go ├── shim.go ├── shim_test.go ├── stub.go └── stub_test.go /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/settings.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/settings.yml -------------------------------------------------------------------------------- /.github/workflows/pull_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/workflows/pull_request.yml -------------------------------------------------------------------------------- /.github/workflows/scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/workflows/scan.yml -------------------------------------------------------------------------------- /.github/workflows/schedule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/workflows/schedule.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/vulnerability-scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.github/workflows/vulnerability-scan.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #SPDX-License-Identifier: Apache-2.0 2 | 3 | .DS_Store 4 | .idea 5 | *~ 6 | *# 7 | .#* 8 | .*.sw* 9 | /build 10 | cover.out 11 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/.golangci.yml -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/LICENSE -------------------------------------------------------------------------------- /MAINTAINERS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/MAINTAINERS.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/SECURITY.md -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/doc.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/go.sum -------------------------------------------------------------------------------- /pkg/attrmgr/attrmgr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/attrmgr/attrmgr.go -------------------------------------------------------------------------------- /pkg/attrmgr/attrmgr_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/attrmgr/attrmgr_test.go -------------------------------------------------------------------------------- /pkg/cid/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/cid/README.md -------------------------------------------------------------------------------- /pkg/cid/cid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/cid/cid.go -------------------------------------------------------------------------------- /pkg/cid/cid_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/cid/cid_test.go -------------------------------------------------------------------------------- /pkg/cid/interfaces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/cid/interfaces.go -------------------------------------------------------------------------------- /pkg/statebased/interfaces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/statebased/interfaces.go -------------------------------------------------------------------------------- /pkg/statebased/statebasedimpl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/statebased/statebasedimpl.go -------------------------------------------------------------------------------- /pkg/statebased/statebasedimpl_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/pkg/statebased/statebasedimpl_test.go -------------------------------------------------------------------------------- /shim/batch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/batch.go -------------------------------------------------------------------------------- /shim/chaincodeserver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/chaincodeserver.go -------------------------------------------------------------------------------- /shim/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/handler.go -------------------------------------------------------------------------------- /shim/handler_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/handler_test.go -------------------------------------------------------------------------------- /shim/interfaces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/interfaces.go -------------------------------------------------------------------------------- /shim/internal/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/client.go -------------------------------------------------------------------------------- /shim/internal/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/client_test.go -------------------------------------------------------------------------------- /shim/internal/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/config.go -------------------------------------------------------------------------------- /shim/internal/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/config_test.go -------------------------------------------------------------------------------- /shim/internal/mock/client_stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/mock/client_stream.go -------------------------------------------------------------------------------- /shim/internal/mock/peer_chaincode_stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/mock/peer_chaincode_stream.go -------------------------------------------------------------------------------- /shim/internal/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/server.go -------------------------------------------------------------------------------- /shim/internal/server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/internal/server_test.go -------------------------------------------------------------------------------- /shim/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/response.go -------------------------------------------------------------------------------- /shim/shim.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/shim.go -------------------------------------------------------------------------------- /shim/shim_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/shim_test.go -------------------------------------------------------------------------------- /shim/stub.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/stub.go -------------------------------------------------------------------------------- /shim/stub_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hyperledger/fabric-chaincode-go/HEAD/shim/stub_test.go --------------------------------------------------------------------------------