Documentation ¶
Index ¶
- func Chaincodes() []api.UserCC
- func CreateSCC(providers ...interface{}) []scc.SelfDescribingSysCC
- func GetPackageID(cc api.UserCC) string
- func GetUCC(name, version string) (api.UserCC, bool)
- func GetUCCByPackageID(id string) (api.UserCC, bool)
- func IsValidMSP(mspID string, msps map[string]msp.MSP) bool
- func WaitForReady()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chaincodes ¶
Chaincodes returns all registered in-process chaincodes
func CreateSCC ¶
func CreateSCC(providers ...interface{}) []scc.SelfDescribingSysCC
CreateSCC returns list of System ChainCodes provided by extensions
func GetPackageID ¶
GetPackageID returns the package ID of the chaincode
func GetUCC ¶
GetUCC returns the in-process user chaincode that matches the given name and version. The user chaincode is returned when the name matches and the major and minor versions match. For example:
Registered chaincodes: - ucc1 = cc1:v1 - ucc1_1 = cc1:v1.1 - ucc2 = cc2:v1
Then the following is returned: cc1,v1 => ucc1, true cc1,v1.0 => ucc1, true cc1,v1.0.1 => ucc1, true cc1,v1.1.0 => ucc1_1, true cc1,v1.2.0 => nil, false cc2,v1.0.5 => ucc2, true
func GetUCCByPackageID ¶
GetUCCByPackageID returns the in-process user chaincode for the given package ID
func IsValidMSP ¶
IsValidMSP return true if the given MSP is valid for chaincode/collection policy
Types ¶
This section is empty.