iotex-core: Index | Files

package account

import ""


Package Files

account.go accountbalance.go accountcreate.go accountcreateadd.go accountdelete.go accountethaddr.go accountexport.go accountexportpublic.go accountgetvotes.go accountimport.go accountlist.go accountnonce.go accountsign.go accountupdate.go accountverify.go


var AccountCmd = &cobra.Command{
    Use:   config.TranslateInLang(accountCmdUses, config.UILanguage),
    Short: config.TranslateInLang(accountCmdShorts, config.UILanguage),

AccountCmd represents the account command

var CryptoSm2 bool

CryptoSm2 is a flag for sm2 cryptographic algorithm

var (
    ErrPasswdNotMatch = errors.New("password doesn't match")


func GetAccountMeta Uses

func GetAccountMeta(addr string) (*iotextypes.AccountMeta, error)

GetAccountMeta gets account metadata

func IsSignerExist Uses

func IsSignerExist(signer string) bool

IsSignerExist checks whether signer account is existed

func LocalAccountToPrivateKey Uses

func LocalAccountToPrivateKey(signer, password string) (crypto.PrivateKey, error)

LocalAccountToPrivateKey generates our PrivateKey interface from Keystore account

func Sign Uses

func Sign(signer, password, message string) (signedMessage string, err error)

Sign sign message with signer

Package account imports 31 packages (graph) and is imported by 2 packages. Updated 2020-04-05. Refresh now. Tools for package owners.