code: func (sw *Switch) SetNodePrivKey(nodePrivKey crypto.PrivKeyEd25519) {
  	sw.nodePrivKey = nodePrivKey
  	if sw.nodeInfo != nil {
  		sw.nodeInfo.PubKey = nodePrivKey.PubKey().(crypto.PubKeyEd25519)
  	}
  }
docs: // Not goroutine safe.
  // NOTE: Overwrites sw.nodeInfo.PubKey