From fd8e68a9eec74d0ff49a394f34fb378b153e46c8 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Mon, 9 Nov 2020 15:19:54 -0800
Subject: [PATCH] make the auth fingperint in store operate on the pubkey
 instead of the private

---
 storage/auth/store.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/storage/auth/store.go b/storage/auth/store.go
index bf0e8830a..4bff9af04 100644
--- a/storage/auth/store.go
+++ b/storage/auth/store.go
@@ -42,7 +42,8 @@ func NewStore(kv *versioned.KV, grp *cyclic.Group, privKeys []*cyclic.Int) (*Sto
 	}
 
 	for _, key := range privKeys {
-		fp := auth.MakeRequestFingerprint(key)
+		pubkey := grp.ExpG(key, grp.NewInt(1))
+		fp := auth.MakeRequestFingerprint(pubkey)
 		s.fingerprints[fp] = fingerprint{
 			Type:    General,
 			PrivKey: key,
-- 
GitLab