account

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

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 PrivateKeyFromSigner

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

PrivateKeyFromSigner returns private key from signer

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