NewPrivateKey returns a new PrivateKey, but without the DERP region populated. It's up to the caller to populate that.
()
| 195 | // the DERP region populated. It's up to the caller to |
| 196 | // populate that. |
| 197 | func 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) |
no outgoing calls
no test coverage detected