From 68aed866858354307659a2f6ba888f2ba671f86d Mon Sep 17 00:00:00 2001 From: vishal <1117327+vishalchangrani@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:32:17 -0700 Subject: [PATCH] printing the private key on console DO NOT USE IN PRODUCTION --- main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main.go b/main.go index 0f681a0b..98b1c58b 100644 --- a/main.go +++ b/main.go @@ -109,6 +109,21 @@ func runServer(cfg *configs.Config) { // Key manager km := basic.NewKeyManager(cfg, keyStore, fc) + a, err := accountStore.Account("0xe55b200d415b45a3") + if err != nil { + ls.Fatal(err) + } + for _, k := range a.Keys { + pkKey, err := km.Load(k) + if err != nil { + ls.Fatal(err) + } + fmt.Println("HashAlgo" + k.HashAlgo) + fmt.Println("SignAlgo" + k.SignAlgo) + fmt.Println("Type" + k.Type) + fmt.Println("Private Key DO NOT SHARE" + pkKey.Value) + } + // Services templateService := templates.NewService(cfg, templateStore) jobsService := jobs.NewService(jobStore)