v1

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWalletNameCannotStartWithDot           = errors.New("the name cannot start with a dot (\".\") character")
	ErrWalletNameCannotContainSlashCharacters = errors.New("the name cannot contain slash (\"/\", \"\\\") characters")
)

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func InitialiseStore

func InitialiseStore(walletsHome string) (*Store, error)

func (*Store) DeleteWallet

func (s *Store) DeleteWallet(ctx context.Context, name string) error

func (*Store) GetWallet

func (s *Store) GetWallet(ctx context.Context, name, passphrase string) (wallet.Wallet, error)

func (*Store) GetWalletPath

func (s *Store) GetWalletPath(name string) string

func (*Store) ListWallets

func (s *Store) ListWallets(ctx context.Context) ([]string, error)

func (*Store) RenameWallet added in v0.60.0

func (s *Store) RenameWallet(ctx context.Context, currentName, newName string) error

func (*Store) SaveWallet

func (s *Store) SaveWallet(ctx context.Context, w wallet.Wallet, passphrase string) error

func (*Store) WalletExists

func (s *Store) WalletExists(ctx context.Context, name string) (bool, error)

Jump to

Keyboard shortcuts

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