Skip to content

Commit

Permalink
Fix PR Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
siddimore authored Oct 25, 2023
1 parent 267c60e commit b37832e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/egnkey/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ func generateECDSAKeys(numKeys int, path string, passwordFile, privateKeyFile *o
key, err := crypto.GenerateKey()
privateKeyHex := hex.EncodeToString(key.D.Bytes())

// Low tech fix for creating valid keys, probably better is validation code
// Checking if the length of privateKeyHex is 32 bytes (64 characters)
// Check if the length of privateKeyHex is 32 bytes (64 characters)
// Validation in Library will handle this
lenPrivateKey := len(privateKeyHex)
if lenPrivateKey != 64 {
fmt.Printf("Private key Ignore: %s %d\n", privateKeyHex, lenPrivateKey)
Expand Down

0 comments on commit b37832e

Please sign in to comment.