cmd

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEd25519KeyName         = `DDChain-ED25519`
	DdchainDefaultBIP39PassPhrase = "ddchain"
	BIP44Prefix                   = "44'/931'/"
	PartialPath                   = "0'/0/0"
	FullPath                      = BIP44Prefix + PartialPath
)

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func GetEd25519Keys

func GetEd25519Keys() *cobra.Command

func GetPubKeyCmd

func GetPubKeyCmd() *cobra.Command

GetPubKeyCmd cosmos sdk removed pubkey support recently , as a result of that , all pubkey will be print out in protobuf json format like{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AivZERqhB2H3l4JC7RYG3TeaaUwKf4N/mdxDqDXyZRpF"} DDChain need the pubkey in bech32 encoded format, this command is to convert the protobuf json back to bech32 encoded format

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for ddnode. It is called once in the main function.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL