Versions in this module Expand all Collapse all v1 v1.4.4 Nov 14, 2019 Changes in this version + const InstallChaincodeFuncName + const QueryInstalledChaincodeFuncName + type ChaincodeStore interface + RetrieveHash func(name, version string) (hash []byte, err error) + Save func(name, version string, ccInstallPkg []byte) (hash []byte, err error) + type Lifecycle struct + ChaincodeStore ChaincodeStore + PackageParser PackageParser + func (l *Lifecycle) InstallChaincode(name, version string, chaincodeInstallPackage []byte) ([]byte, error) + func (l *Lifecycle) QueryInstalledChaincode(name, version string) ([]byte, error) + type PackageParser interface + Parse func(data []byte) (*persistence.ChaincodePackage, error) + type Protobuf interface + Marshal func(msg proto.Message) (marshaled []byte, err error) + Unmarshal func(marshaled []byte, msg proto.Message) error + type ProtobufImpl struct + func (p ProtobufImpl) Marshal(msg proto.Message) ([]byte, error) + func (p ProtobufImpl) Unmarshal(marshaled []byte, msg proto.Message) error + type SCC struct + Functions SCCFunctions + Protobuf Protobuf + func (scc *SCC) Chaincode() shim.Chaincode + func (scc *SCC) Enabled() bool + func (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response + func (scc *SCC) InitArgs() [][]byte + func (scc *SCC) InvokableCC2CC() bool + func (scc *SCC) InvokableExternal() bool + func (scc *SCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response + func (scc *SCC) Name() string + func (scc *SCC) Path() string + type SCCFunctions interface + InstallChaincode func(name, version string, chaincodePackage []byte) (hash []byte, err error) + QueryInstalledChaincode func(name, version string) (hash []byte, err error)