MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / SetNodeKey

Method SetNodeKey

p2p/switch.go:223–225  ·  view source on GitHub ↗

SetNodeKey sets the switch's private key for authenticated encryption. NOTE: Not goroutine safe.

(nodeKey *NodeKey)

Source from the content-addressed store, hash-verified

221// SetNodeKey sets the switch's private key for authenticated encryption.
222// NOTE: Not goroutine safe.
223func (sw *Switch) SetNodeKey(nodeKey *NodeKey) {
224 sw.nodeKey = nodeKey
225}
226
227//---------------------------------------------------------------------
228// Service start/stop

Callers 3

createSwitchFunction · 0.95
createSwitchFunction · 0.95
MakeSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected