From 3f784007fa204d30b10da5d19f46be5aa2fd28a4 Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Sun, 21 Jan 2024 15:01:46 -0500 Subject: [PATCH] minor keystore refactor --- foundation/keystore/keystore.go | 7 ------- foundation/keystore/test.pem | 27 --------------------------- 2 files changed, 34 deletions(-) delete mode 100644 foundation/keystore/test.pem diff --git a/foundation/keystore/keystore.go b/foundation/keystore/keystore.go index 60ca36f2..14fc8549 100644 --- a/foundation/keystore/keystore.go +++ b/foundation/keystore/keystore.go @@ -46,13 +46,6 @@ func New(log *zap.SugaredLogger) *KeyStore { } } -// NewMap constructs a KeyStore with an initial set of keys. -func NewMap(store map[string]privateKey) *KeyStore { - return &KeyStore{ - store: store, - } -} - // LoadAuthKeys loads a set of RSA PEM files rooted inside of a directory. The // name of each PEM file will be used as the key id. func (ks *KeyStore) LoadAuthKeys(folder string) error { diff --git a/foundation/keystore/test.pem b/foundation/keystore/test.pem deleted file mode 100644 index 7c52ba6e..00000000 --- a/foundation/keystore/test.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAvMAHb0IoLvoYuW2kA+LTmnk+hfnBq1eYIh4CT/rMPCxgtzjq -U0guQOMnLg69ydyA5uu37v6rbS1+stuBTEiMQl/bxAhgLkGrUhgpZ10Bt6GzSEgw -QNloZoGaxe4p20wMPpT4kcMKNHkQds3uONNcLxPUmfjbbH64g+seg28pbgQPwKFK -tF7bIsOBgz0g5Ptn5mrkdzqMPUSy9k9VCu+R42LH9c75JsRzz4FeN+VzwMAL6yQn -ZvOi7/zOgNyxeVia8XVKykrnhgcpiOn5oaLRBzQGN00Z7TuBRIfDJWU21qQN4Cq7 -keZmMP4gqCVWjYneK4bzrG/+H2w9BJ2TsmMGvwIDAQABAoIBAFQmQKpHkmavNYql -6POaksBRwaA1YzSijr7XJizGIXvKRSwqgb2zdnuTSgpspAx09Dr/aDdy7rZ0DAJt -fk2mInINDottOIQm3txwzT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