Documentation ¶
Index ¶
- Variables
- func GetAccountMeta(addr string, client ioctl.Client) (*iotextypes.AccountMeta, error)
- func IsSignerExist(client ioctl.Client, signer string) bool
- func NewAccountCmd(client ioctl.Client) *cobra.Command
- func NewAccountCreate(c ioctl.Client) *cobra.Command
- func NewAccountDelete(c ioctl.Client) *cobra.Command
- func NewAccountList(c ioctl.Client) *cobra.Command
- func NewAccountNonce(client ioctl.Client) *cobra.Command
- func NewAccountSign(client ioctl.Client) *cobra.Command
- func NewAccountUpdate(client ioctl.Client) *cobra.Command
- func PrivateKeyFromSigner(client ioctl.Client, signer, password string) (crypto.PrivateKey, error)
- func Sign(client ioctl.Client, signer, password, message string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CryptoSm2 bool
CryptoSm2 is a flag for sm2 cryptographic algorithm
View Source
var ( // ErrPasswdNotMatch indicates that the second input password is different from the first ErrPasswdNotMatch = errors.New("password doesn't match") )
Errors
Functions ¶
func GetAccountMeta ¶ added in v1.7.0
func GetAccountMeta(addr string, client ioctl.Client) (*iotextypes.AccountMeta, error)
GetAccountMeta gets account metadata
func IsSignerExist ¶ added in v1.7.0
IsSignerExist checks whether signer account is existed
func NewAccountCmd ¶ added in v1.7.0
NewAccountCmd represents the account command
func NewAccountCreate ¶
NewAccountCreate represents the account create command
func NewAccountDelete ¶
NewAccountDelete represents the account delete command
func NewAccountList ¶ added in v1.7.0
NewAccountList represents the account list command
func NewAccountNonce ¶ added in v1.7.0
NewAccountNonce represents the account nonce command
func NewAccountSign ¶ added in v1.7.0
NewAccountSign represents the account sign command
func NewAccountUpdate ¶ added in v1.7.0
NewAccountUpdate represents the account update command
func PrivateKeyFromSigner ¶ added in v1.7.0
PrivateKeyFromSigner returns private key from signer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.