func GetCCHandlerKey() string
GetCCHandlerKey is used to pass CCSupport via context
CCID encapsulates chaincode ID
type CCID struct { Name string Version string }
func (ccid *CCID) GetName() string
GetName returns canonical chaincode name based on the fields of CCID
CCSupport must be implemented by the chaincode support side in peer (such as chaincode_support)
type CCSupport interface { HandleChaincodeStream(ChaincodeStream) error }
ChaincodeStream interface for stream between Peer and chaincode instance.
type ChaincodeStream interface { Send(*pb.ChaincodeMessage) error Recv() (*pb.ChaincodeMessage, error) }