Documentation ¶
Index ¶
- Constants
- Variables
- func DeriveKey(client ioctl.Client, account, change, index uint32, password string) (string, crypto.PrivateKey, error)
- func NewHdwalletCmd(client ioctl.Client) *cobra.Command
- func NewHdwalletCreateCmd(client ioctl.Client) *cobra.Command
- func NewHdwalletDeleteCmd(client ioctl.Client) *cobra.Command
- func NewHdwalletDeriveCmd(client ioctl.Client) *cobra.Command
- func NewHdwalletExportCmd(client ioctl.Client) *cobra.Command
- func NewHdwalletImportCmd(client ioctl.Client) *cobra.Command
Constants ¶
View Source
const DefaultRootDerivationPath = "m/44'/304'"
DefaultRootDerivationPath for iotex https://github.com/satoshilabs/slips/blob/master/slip-0044.md
Variables ¶
View Source
var (
ErrPasswdNotMatch = errors.New("password doesn't match")
)
Errors
Functions ¶
func DeriveKey ¶
func DeriveKey(client ioctl.Client, account, change, index uint32, password string) (string, crypto.PrivateKey, error)
DeriveKey derives the key according to path
func NewHdwalletCmd ¶
NewHdwalletCmd represents the new hdwallet command.
func NewHdwalletCreateCmd ¶
NewHdwalletCreateCmd represents the hdwallet create command
func NewHdwalletDeleteCmd ¶
NewHdwalletDeleteCmd represents the hdwallet delete command
func NewHdwalletDeriveCmd ¶
NewHdwalletDeriveCmd represents the hdwallet derive command
func NewHdwalletExportCmd ¶
NewHdwalletExportCmd represents the hdwallet export command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.