Documentation ¶
Index ¶
- func GenerateSaveCoinKey(keybase keyring.Keyring, keyName string, overwrite bool, ...) (sdk.AccAddress, string, error)
- func InitConfig(cmd *cobra.Command) error
- func KeyCommands(defaultNodeHome string) *cobra.Command
- func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command
- func UnsafeExportEthKeyCommand() *cobra.Command
- func UnsafeImportKeyCommand() *cobra.Command
- func ValidateChainID(baseCmd *cobra.Command) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSaveCoinKey ¶
func GenerateSaveCoinKey(keybase keyring.Keyring, keyName string, overwrite bool, algo keyring.SignatureAlgo) (sdk.AccAddress, string, error)
GenerateSaveCoinKey returns the address of a public key, along with the secret phrase to recover the private key.
func InitConfig ¶
InitConfig adds the chain-id, encoding and output flags to the persistent flag set.
func KeyCommands ¶
KeyCommands registers a sub-tree of commands to interact with local private key storage.
func NewTestnetCmd ¶
func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command
NewTestnetCmd creates a root testnet command with subcommands to run an in-process testnet or initialize validator configuration files for running a multi-validator testnet in a separate process
func UnsafeExportEthKeyCommand ¶
UnsafeExportEthKeyCommand exports a key with the given name as a private key in hex format.
func UnsafeImportKeyCommand ¶
UnsafeImportKeyCommand imports private keys from a keyfile.
Types ¶
This section is empty.