From b37832e5847ff01c2d6dc780b9db9ba52b57423a Mon Sep 17 00:00:00 2001 From: siddimore Date: Wed, 25 Oct 2023 11:01:58 -0700 Subject: [PATCH] Fix PR Comment --- cmd/egnkey/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/egnkey/generate.go b/cmd/egnkey/generate.go index 02ea1839..3beb90c9 100644 --- a/cmd/egnkey/generate.go +++ b/cmd/egnkey/generate.go @@ -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)