MCPcopy
hub / github.com/hyperledger/fabric / BuildCollectionKVSKey

Function BuildCollectionKVSKey

core/common/privdata/collection.go:145–147  ·  view source on GitHub ↗

BuildCollectionKVSKey constructs the collection config key for a given chaincode name

(ccname string)

Source from the content-addressed store, hash-verified

143
144// BuildCollectionKVSKey constructs the collection config key for a given chaincode name
145func BuildCollectionKVSKey(ccname string) string {
146 return ccname + collectionSeparator + collectionSuffix
147}
148
149// IsCollectionConfigKey detects if a key is a collection key
150func IsCollectionConfigKey(key string) bool {

Calls

no outgoing calls