accounts

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(input string) (types.AccDesc, error)

func GetAccounts

func GetAccounts() map[string]types.AccDesc

GetAccounts returns a map address -> account description Each description is stored in a json file whose name is the address and content is the description. All files are kept in ~/.jarvis/

func StoreAccountRecord

func StoreAccountRecord(accDesc types.AccDesc) error

func StorePrivateKeyWithKeystore added in v0.0.19

func StorePrivateKeyWithKeystore(privateKey string, passphrase string) (string, error)

func UnlockAccount

func UnlockAccount(ad types.AccDesc) (*account.Account, error)

func UnlockKeystoreAccountWithPassword added in v0.0.22

func UnlockKeystoreAccountWithPassword(ad types.AccDesc, pwd string) (*account.Account, error)

func VerifyKeystore

func VerifyKeystore(path string) (string, error)

Types

type FuzzySource

type FuzzySource []types.AccDesc

func NewFuzzySource

func NewFuzzySource() FuzzySource

func (FuzzySource) Len

func (self FuzzySource) Len() int

func (FuzzySource) String

func (self FuzzySource) String(i int) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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