review comments addressed

Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
This commit is contained in:
Matthew R. Kasun
2022-04-20 09:26:23 -04:00
parent b47c72ead2
commit adfa5236f8
3 changed files with 8 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ func Register(cfg *config.ClientConfig, key string) error {
return JoinNetwork(cfg, key, false)
}
// RegisterWithServer calls the register endpoint with privatekey and commonname - api returns ca and client certificate
func RegisterWithServer(private *ed25519.PrivateKey, cfg *config.ClientConfig) error {
data := config.RegisterRequest{
Key: *private,