v1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRSAFolderDoesNotExists = errors.New("RSA folder does not exist")
)

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(rootPath string) (*Store, error)

func (*Store) GetConfig

func (s *Store) GetConfig() (*config.Config, error)

func (*Store) GetRsaKeys

func (s *Store) GetRsaKeys() (*wallet.RSAKeys, error)

func (*Store) GetWallet

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

func (*Store) GetWalletPath

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

func (*Store) Initialise

func (s *Store) Initialise() error

Initialise creates the folders. It does nothing if a folder already exists.

func (*Store) SaveConfig

func (s *Store) SaveConfig(cfg *config.Config, overwrite bool) error

func (*Store) SaveRSAKeys

func (s *Store) SaveRSAKeys(keys *wallet.RSAKeys, overwrite bool) error

func (*Store) SaveWallet

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

func (*Store) WalletExists

func (s *Store) WalletExists(name string) bool

Jump to

Keyboard shortcuts

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