1 Star 1 Fork 0

Hyperledger Fabric 国密 / fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
chaincode.go 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
Jtyoui 提交于 2021-07-22 15:59 . 国密
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package peer
// Name implements the platforms.NameDescriber interface
func (cs *ChaincodeSpec) Name() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Name
}
func (cs *ChaincodeSpec) Version() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Version
}
// Path implements the platforms.PathDescriber interface
func (cs *ChaincodeSpec) Path() string {
if cs.ChaincodeId == nil {
return ""
}
return cs.ChaincodeId.Path
}
func (cs *ChaincodeSpec) CCType() string {
return cs.Type.String()
}
// Path implements the platforms.PathDescriber interface
func (cds *ChaincodeDeploymentSpec) Path() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Path()
}
// Bytes implements the platforms.CodePackage interface
func (cds *ChaincodeDeploymentSpec) Bytes() []byte {
return cds.CodePackage
}
func (cds *ChaincodeDeploymentSpec) CCType() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.CCType()
}
func (cds *ChaincodeDeploymentSpec) Name() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Name()
}
func (cds *ChaincodeDeploymentSpec) Version() string {
if cds.ChaincodeSpec == nil {
return ""
}
return cds.ChaincodeSpec.Version()
}
Go
1
https://gitee.com/hyperledger-fabric-gm/fabric.git
git@gitee.com:hyperledger-fabric-gm/fabric.git
hyperledger-fabric-gm
fabric
fabric
v1.4.9

搜索帮助

53164aa7 5694891 3bd8fe86 5694891