store

package
v0.0.0-...-cce5508 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNoUnlockBadPassphrase for bad password
	ErrNoUnlockBadPassphrase = fmt.Errorf("could not unlock account with passphrase, perhaps need different phrase")
)

Functions

func AddressFromAccountName

func AddressFromAccountName(name string) (string, error)

AddressFromAccountName Returns address for account name if exists

func DefaultLocation

func DefaultLocation() string

DefaultLocation get deafault location

func DescribeLocalAccounts

func DescribeLocalAccounts()

DescribeLocalAccounts will display all the account alias name and their corresponding one address

func DoesNamedAccountExist

func DoesNamedAccountExist(name string) bool

DoesNamedAccountExist return true if the given string name is an alias account already define, and return false otherwise

func FromAccountName

func FromAccountName(name string) *keystore.KeyStore

FromAccountName get account from name

func FromAddress

func FromAddress(addr string) *keystore.KeyStore

FromAddress will return nil if the Base58 string is not found in the imported accounts

func LocalAccounts

func LocalAccounts() []string

LocalAccounts returns a slice of local account alias names

func SetDefaultLocation

func SetDefaultLocation(directory string)

SetDefaultLocation set deafault location

func UnlockedKeystore

func UnlockedKeystore(from, passphrase string) (*keystore.KeyStore, *keystore.Account, error)

UnlockedKeystore return keystore unlocked

Types

This section is empty.

Jump to

Keyboard shortcuts

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