//GetName returns canonical chaincode name based on chain name
GetName returns canonical chaincode name based on chain name
// GetName returns canonical chaincode name based on chain name
func (ccid *CCID) GetName() string {
	if ccid.ChaincodeSpec == nil {
		panic("nil chaincode spec")
	}
	name := ccid.ChaincodeSpec.ChaincodeId.Name
	if ccid.Version != "" {
		name = name + "-" + ccid.Version
	}
	if ccid.ChainID != "" {
		hash := util.ComputeSM3([]byte(ccid.ChainID))
		hexstr := hex.EncodeToString(hash[:])
		name = name + "-" + hexstr
	}
	return name
}
func ( ccid * CCID ) GetName ( ) string { if ccid . ChaincodeSpec == nil { panic ( " " ) } name := ccid . ChaincodeSpec . ChaincodeId . Name if ccid . Version != " " { name = name + " " + ccid . Version } if ccid . ChainID != " " { hash := util . ComputeSM3 ( [ ] byte ( ccid . ChainID ) ) hexstr := hex . EncodeToString ( hash [ : ] ) name = name + " " + hexstr } return name }
GetName returns canonical chaincode name based on chain name
GetName returns canonical chaincode name based on chain name
//this better be chainless system chaincode!