Skip to content

Files

Latest commit

 

History

History
22 lines (18 loc) · 440 Bytes

metadata_go.md

File metadata and controls

22 lines (18 loc) · 440 Bytes

metadata.go

定义两个重要结构体和相关方法。

// InstalledChaincode defines metadata about an installed chaincode
type InstalledChaincode struct {
	Name    string
	Version string
	Id      []byte
}

// Metadata defines channel-scoped metadata of a chaincode
type Metadata struct {
	Name              string
	Version           string
	Policy            []byte
	Id                []byte
	CollectionsConfig []byte
}