You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chantools/cmd/chantools/showrootkey.go

20 lines
362 B
Go

package main
import (
"fmt"
)
type showRootKeyCommand struct{}
func (c *showRootKeyCommand) Execute(_ []string) error {
setupChainParams(cfg)
rootKey, _, err := rootKeyFromConsole()
if err != nil {
return fmt.Errorf("failed to read root key from console: %v",
err)
}
fmt.Printf("\nYour BIP32 HD root key is: %s\n", rootKey.String())
return nil
}