Skip to content

Commit 07099bf

Browse files
author
vlad
committed
removed unneeded func
1 parent afe0434 commit 07099bf

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

x/registration/internal/keeper/keeper.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"encoding/binary"
55
"encoding/hex"
66
"encoding/json"
7-
"fmt"
8-
"os"
97
"path/filepath"
108

119
"cosmossdk.io/core/store"
@@ -96,32 +94,6 @@ func getLegacySeedParams(path string) ([]byte, []byte) {
9694
return enc, pk
9795
}
9896

99-
func createOldSecret(key []byte, seedFilePath string, enclave EnclaveInterface) error {
100-
seed, err := enclave.GetEncryptedGenesisSeed(key)
101-
if err != nil {
102-
return err
103-
}
104-
105-
println(seed)
106-
107-
cfg := types.LegacySeedConfig{
108-
EncryptedKey: fmt.Sprintf("%02x", seed),
109-
MasterCert: types.LegacyIoMasterCertificate,
110-
}
111-
112-
cfgBytes, err := json.Marshal(&cfg)
113-
if err != nil {
114-
return err
115-
}
116-
117-
err = os.WriteFile(seedFilePath, cfgBytes, 0o600)
118-
if err != nil {
119-
return err
120-
}
121-
122-
return nil
123-
}
124-
12597
func InitializeNode(homeDir string, enclave EnclaveInterface) {
12698
apiKey, err := types.GetApiKey()
12799
if err != nil {

0 commit comments

Comments
 (0)