Skip to content

Commit

Permalink
fix: (generate-operator-keys) encode keys as base64 instead of hex (#919
Browse files Browse the repository at this point in the history
)
  • Loading branch information
moshe-blox authored Mar 30, 2023
1 parent 4ed93f2 commit 0d8397c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/generate_operator_keys.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package cli

import (
"encoding/base64"
"log"

"github.com/bloxapp/ssv/logging"
"github.com/bloxapp/ssv/logging/fields"
"github.com/bloxapp/ssv/utils/rsaencryption"
"github.com/spf13/cobra"
"go.uber.org/zap"
Expand All @@ -24,8 +24,8 @@ var generateOperatorKeysCmd = &cobra.Command{
if err != nil {
logger.Fatal("Failed to generate operator keys", zap.Error(err))
}
logger.Info("generated public key (base64)", fields.PubKey(pk))
logger.Info("generated private key (base64)", fields.PrivKey(sk))
logger.Info("generated public key (base64)", zap.String("pk", base64.StdEncoding.EncodeToString(pk)))
logger.Info("generated private key (base64)", zap.String("sk", base64.StdEncoding.EncodeToString(sk)))
},
}

Expand Down

0 comments on commit 0d8397c

Please sign in to comment.