core

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BestPublicKey

func BestPublicKey(account e2wtypes.Account) (e2types.PublicKey, error)

BestPublicKey returns the best public key for operations. It prefers the composite public key if present, otherwise the public key.

func SetupStore

func SetupStore() error

SetupStore sets up the account store.

func WalletAndAccountFromInput

func WalletAndAccountFromInput(ctx context.Context) (e2wtypes.Wallet, e2wtypes.Account, error)

WalletAndAccountFromInput obtains the wallet and account given the information in the viper variable "account".

func WalletAndAccountFromPath

func WalletAndAccountFromPath(ctx context.Context, path string) (e2wtypes.Wallet, e2wtypes.Account, error)

WalletAndAccountFromPath obtains the wallet and account given a path specification.

func WalletAndAccountsFromPath

func WalletAndAccountsFromPath(ctx context.Context, path string) (e2wtypes.Wallet, []e2wtypes.Account, error)

WalletAndAccountsFromPath obtains the wallet and matching accounts given a path specification.

func WalletFromInput

func WalletFromInput(ctx context.Context) (e2wtypes.Wallet, error)

WalletFromInput obtains a wallet given the information in the viper variable "account", or if not present the viper variable "wallet".

func WalletFromPath

func WalletFromPath(ctx context.Context, path string) (e2wtypes.Wallet, error)

WalletFromPath obtains a wallet given a path specification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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