account

package
v2.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 35 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func IsSignerExist(signer string) bool

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

func RegisterPasswordFlag(cmd *cobra.Command)

func Sign

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

Sign sign message with signer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL