Documentation
¶
Index ¶
- func BestPublicKey(account e2wtypes.Account) (e2types.PublicKey, error)
- func SetupStore() error
- func WalletAndAccountFromInput(ctx context.Context) (e2wtypes.Wallet, e2wtypes.Account, error)
- func WalletAndAccountFromPath(ctx context.Context, path string) (e2wtypes.Wallet, e2wtypes.Account, error)
- func WalletAndAccountsFromPath(ctx context.Context, path string) (e2wtypes.Wallet, []e2wtypes.Account, error)
- func WalletFromInput(ctx context.Context) (e2wtypes.Wallet, error)
- func WalletFromPath(ctx context.Context, path string) (e2wtypes.Wallet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BestPublicKey ¶
BestPublicKey returns the best public key for operations. It prefers the composite public key if present, otherwise the public key.
func WalletAndAccountFromInput ¶
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 ¶
WalletFromInput obtains a wallet given the information in the viper variable "account", or if not present the viper variable "wallet".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.