# Functions

CreateCompositeKey ...
Error ...
GetMSPID returns the local mspid of the peer by checking the CORE_PEER_LOCALMSPID env var and returns an error if the env var is not set.
Start chaincodes.
StartInProc is an entry point for system chaincodes bootstrap.
Success ...

# Constants

ERROR constant - default error value.
ERRORTHRESHOLD constant - status code greater than or equal to 400 will be considered an error and rejected by endorser.
TODO: Document constants Constants ..
OK constant - status code less than 400, endorser will endorse it.
TODO: Document constants Constants ..

# Structs

ChaincodeServer encapsulates basic properties needed for a chaincode server.
ChaincodeStub is an object passed to chaincode for shim side handling of APIs.
CommonIterator documentation can be found in interfaces.go.
Handler handler implementation for shim side of chaincode.
HistoryQueryIterator documentation can be found in interfaces.go.
StateQueryIterator documentation can be found in interfaces.go.
TLSProperties passed to ChaincodeServer.

# Interfaces

Chaincode interface must be implemented by all chaincodes.
ChaincodeStubInterface is used by deployable chaincode apps to access and modify their ledgers.
ClientStream supports the (original) chaincode-as-client interaction pattern.
CommonIteratorInterface allows a chaincode to check whether any more result to be fetched from an iterator and close it when done.
HistoryQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by a history query.
MockQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by range query.
PeerChaincodeStream is the common stream interface for Peer - chaincode communication.
StateQueryIteratorInterface allows a chaincode to iterate over a set of key/value pairs returned by range and execute query.