Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseETHWalletCmd = &cobra.Command{ Use: "parseethwallet --file UTC--2023-03-03T17-26-43.371893268Z--1652e7b47af367372a7a6d7d6fe5037702860c6d", Short: "A simple tool to extract the private key from an eth wallet", Long: ` `, RunE: func(cmd *cobra.Command, args []string) error { rawData, err := getInputData(cmd, args) if err != nil { return err } k := new(plainKeyJSON) err = json.Unmarshal(rawData, &k) if err != nil { return err } d, err := keystore.DecryptDataV3(k.Crypto, *inputPassword) if err != nil { return err } ok := toOutputKey(d) outData, err := json.Marshal(ok) if err != nil { return err } fmt.Println(string(outData)) return nil }, Args: func(cmd *cobra.Command, args []string) error { return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.