accounts

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccounts

func GetAccounts() map[string]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 AccDesc) error

func StorePrivateKeyWithKeystore added in v0.0.19

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

func UnlockAccount

func UnlockAccount(ad AccDesc, network networks.Network) (*account.Account, error)

func UnlockKeystoreAccountWithPassword added in v0.0.22

func UnlockKeystoreAccountWithPassword(ad AccDesc, network networks.Network, pwd string) (*account.Account, error)

func VerifyKeystore

func VerifyKeystore(path string) (string, error)

Types

type AccDesc

type AccDesc struct {
	Address string
	Kind    string
	Keypath string
	Derpath string
	Desc    string
}

func GetAccount

func GetAccount(input string) (AccDesc, error)

type FuzzySource

type FuzzySource []AccDesc

func NewFuzzySource

func NewFuzzySource() FuzzySource

func (FuzzySource) Len

func (self FuzzySource) Len() int

func (FuzzySource) String

func (self FuzzySource) String(i int) string

Jump to

Keyboard shortcuts

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