File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
x/registration/internal/keeper Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 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-
12597func InitializeNode (homeDir string , enclave EnclaveInterface ) {
12698 apiKey , err := types .GetApiKey ()
12799 if err != nil {
You can’t perform that action at this time.
0 commit comments