Skip to content

Commit

Permalink
fix: encode public key for log output
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Jul 6, 2023
1 parent 909e46e commit c0b1b77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/client/client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"encoding/base64"
"flag"
"fmt"
"os"
Expand Down Expand Up @@ -187,7 +188,7 @@ func getKeypair(path string) verification.SignatureKeypair {
if err != nil {
log.Fatal().Msgf("Can not create keypair: %v", err)
}
log.Info().Msgf("Created keypair with pubkey '%s'", keypair.PubKey)
log.Info().Msgf("Created keypair with pubkey '%s'", base64.StdEncoding.EncodeToString(keypair.PubKey))

err = verification.WriteToFile(path, keypair)
if err != nil {
Expand Down

0 comments on commit c0b1b77

Please sign in to comment.