MCPcopy Create free account
hub / github.com/tailscale/tailcat / NewPrivateKey

Function NewPrivateKey

tailcat.go:197–203  ·  view source on GitHub ↗

NewPrivateKey returns a new PrivateKey, but without the DERP region populated. It's up to the caller to populate that.

()

Source from the content-addressed store, hash-verified

195// the DERP region populated. It's up to the caller to
196// populate that.
197func NewPrivateKey() *PrivateKey {
198 ret := &PrivateKey{
199 Private: key.NewNode(),
200 }
201 ret.Public.ServerPublic = NodePublic{ret.Private.Public()}
202 return ret
203}
204
205// locoBackend is like tailscaled's LocalBackend, but crazier.
206// It serves a similar purpose (to be the hub of the world)

Callers 2

genKeyFunction · 0.92
tailcatListenFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected