MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / addEntryptionKey

Method addEntryptionKey

cli/pkg/common/log.go:110–123  ·  view source on GitHub ↗
(key string, isReservePart bool)

Source from the content-addressed store, hash-verified

108}
109
110func (sLog *smartIDELogStruct) addEntryptionKey(key string, isReservePart bool) {
111 if strings.TrimSpace(key) == "" {
112 return
113 }
114 isContain := false
115 for _, item := range _entryptionKeyConfigs {
116 if item.SecretKey == key {
117 isContain = true
118 }
119 }
120 if !isContain {
121 _entryptionKeyConfigs = append(_entryptionKeyConfigs, entryptionKeyConfig{key, isReservePart})
122 }
123}
124
125func entryptionKeys(contents []string) []string {
126 result := []string{}

Callers 2

AddEntryptionKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected