chaincode

package
v0.0.0-...-bfcd41d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chaincodes

func Chaincodes() []api.UserCC

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

func GetPackageID(cc api.UserCC) string

GetPackageID returns the package ID of the chaincode

func GetUCC

func GetUCC(name, version string) (api.UserCC, bool)

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

func GetUCCByPackageID(id string) (api.UserCC, bool)

GetUCCByPackageID returns the in-process user chaincode for the given package ID

func IsValidMSP

func IsValidMSP(mspID string, msps map[string]msp.MSP) bool

IsValidMSP return true if the given MSP is valid for chaincode/collection policy

func WaitForReady

func WaitForReady()

WaitForReady blocks until the chaincodes are all registered

Types

This section is empty.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL