Documentation
¶
Index ¶
- type ChaincodeStore
- type Lifecycle
- type PackageParser
- type SCC
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeStore ¶
type ChaincodeStore interface {
Save(name, version string, ccInstallPkg []byte) (hash []byte, err error)
}
ChaincodeStore provides a way to persist chaincodes
type Lifecycle ¶
type Lifecycle struct { ChaincodeStore ChaincodeStore PackageParser PackageParser }
Lifecycle implements the lifecycle operations which are invoked by the SCC as well as internally
func (*Lifecycle) InstallChaincode ¶ added in v1.3.0
func (l *Lifecycle) InstallChaincode(name, version string, chaincodeInstallPackage []byte) ([]byte, error)
InstallChaincode installs a given chaincode to the peer's chaincode store. It returns the hash to reference the chaincode by or an error on failure.
type PackageParser ¶
type PackageParser interface {
Parse(data []byte) (*persistence.ChaincodePackage, error)
}
type SCC ¶
type SCC struct{}
SCC implements the required methods to satisfy the chaincode interface. It routes the invocation calls to the backing implementations.
func (*SCC) Init ¶
func (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init is mostly useless for system chaincodes and always returns success
func (*SCC) InvokableCC2CC ¶ added in v1.3.0
InvokableCC2CC returns true
func (*SCC) InvokableExternal ¶ added in v1.3.0
InvokableExternal returns true
Click to show internal directories.
Click to hide internal directories.