Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountCmd = &cobra.Command{ Use: config.TranslateInLang(accountCmdUses, config.UILanguage), Short: config.TranslateInLang(accountCmdShorts, config.UILanguage), }
AccountCmd represents the account command
View Source
var CryptoSm2 bool
CryptoSm2 is a flag for sm2 cryptographic algorithm
View Source
var (
ErrPasswdNotMatch = errors.New("password doesn't match")
)
Errors
Functions ¶
func GetAccountMeta ¶
func GetAccountMeta(addr string) (*iotextypes.AccountMeta, error)
GetAccountMeta gets account metadata
func IsSignerExist ¶ added in v0.11.0
IsSignerExist checks whether signer account is existed
func LocalAccountToPrivateKey ¶ added in v0.11.0
func LocalAccountToPrivateKey(signer, password string) (crypto.PrivateKey, error)
LocalAccountToPrivateKey generates our PrivateKey interface from Keystore account
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.