From 31c6ac5f865e009eadab104179f34f36c74bef5a Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Wed, 18 May 2022 21:48:24 +0000
Subject: [PATCH] Don't print private key to log

---
 auth/store/sentRequest.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/auth/store/sentRequest.go b/auth/store/sentRequest.go
index 9fd5bca2d..5903522f7 100644
--- a/auth/store/sentRequest.go
+++ b/auth/store/sentRequest.go
@@ -11,6 +11,8 @@ import (
 	"encoding/base64"
 	"encoding/hex"
 	"encoding/json"
+	"sync"
+
 	"github.com/cloudflare/circl/dh/sidh"
 	"github.com/pkg/errors"
 	jww "github.com/spf13/jwalterweatherman"
@@ -20,7 +22,6 @@ import (
 	"gitlab.com/elixxir/primitives/format"
 	"gitlab.com/xx_network/primitives/id"
 	"gitlab.com/xx_network/primitives/netTime"
-	"sync"
 )
 
 const currentSentRequestVersion = 0
@@ -128,8 +129,8 @@ func loadSentRequest(kv *versioned.KV, partner *id.ID, grp *cyclic.Group) (*Sent
 		hex.EncodeToString(partner[:]))
 	jww.INFO.Printf("loadSentRequest historicalPubKey: %s",
 		hex.EncodeToString(historicalPubKey.Bytes()))
-	jww.INFO.Printf("loadSentRequest myPrivKey: %s",
-		hex.EncodeToString(myPrivKey.Bytes()))
+	// jww.INFO.Printf("loadSentRequest myPrivKey: %s",
+	// 	hex.EncodeToString(myPrivKey.Bytes()))
 	jww.INFO.Printf("loadSentRequest myPubKey: %s",
 		hex.EncodeToString(myPubKey.Bytes()))
 	jww.INFO.Printf("loadSentRequest fingerprint: %s",
-- 
GitLab