account

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CryptoSm2 bool

CryptoSm2 is a flag for sm2 cryptographic algorithm

View Source
var (
	// ErrPasswdNotMatch indicates that the second input password is different from the first
	ErrPasswdNotMatch = errors.New("password doesn't match")
)

Errors

Functions

func GetAccountMeta added in v1.7.0

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

GetAccountMeta gets account metadata

func IsSignerExist added in v1.7.0

func IsSignerExist(client ioctl.Client, signer string) bool

IsSignerExist checks whether signer account is existed

func NewAccountCmd added in v1.7.0

func NewAccountCmd(client ioctl.Client) *cobra.Command

NewAccountCmd represents the account command

func NewAccountCreate

func NewAccountCreate(c ioctl.Client) *cobra.Command

NewAccountCreate represents the account create command

func NewAccountDelete

func NewAccountDelete(c ioctl.Client) *cobra.Command

NewAccountDelete represents the account delete command

func NewAccountList added in v1.7.0

func NewAccountList(c ioctl.Client) *cobra.Command

NewAccountList represents the account list command

func NewAccountNonce added in v1.7.0

func NewAccountNonce(client ioctl.Client) *cobra.Command

NewAccountNonce represents the account nonce command

func NewAccountSign added in v1.7.0

func NewAccountSign(client ioctl.Client) *cobra.Command

NewAccountSign represents the account sign command

func NewAccountUpdate added in v1.7.0

func NewAccountUpdate(client ioctl.Client) *cobra.Command

NewAccountUpdate represents the account update command

func PrivateKeyFromSigner added in v1.7.0

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

PrivateKeyFromSigner returns private key from signer

func Sign added in v1.7.0

func Sign(client ioctl.Client, 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