Documentation ¶
Index ¶
- Variables
- func GetAccountMeta(addr string) (*iotextypes.AccountMeta, error)
- func IsSignerExist(signer string) bool
- func PasswordByFlag() string
- func PrivateKeyFromSigner(signer, password string) (crypto.PrivateKey, error)
- func RegisterPasswordFlag(cmd *cobra.Command)
- func Sign(signer, password, message string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountCmd = &cobra.Command{ Use: "account", 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 ¶
IsSignerExist checks whether signer account is existed
func PasswordByFlag ¶
func PasswordByFlag() string
func PrivateKeyFromSigner ¶
func PrivateKeyFromSigner(signer, password string) (crypto.PrivateKey, error)
PrivateKeyFromSigner returns private key from signer
func RegisterPasswordFlag ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.