cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 40 Imported by: 1

README

Wallet CLI

Root flags

By default, the wallet will be stored at a specific location. If you want to specify a different location for test or isolation purposes, use the --home flag to do so.

List of available commands

There are 3 ways to list the available commands

vegawallet
vegawallet -h
vegawallet help

Initialise the program

Before using the wallet, you need to initialise it with the following command:

vegawallet init

This creates the folders, the configuration file, the default networks and the RSA keys needed by the wallet to operate.

Create a wallet

To create a new wallet, generate your first key pair using the following command:

vegawallet key generate --wallet "YOUR_WALLET"

The --wallet flag sets the name of your wallet.

It will then prompt you to input a passphrase, and then confirm that passphrase. You'll use this username and passphrase to login to Vega Console. You can also specify the passphrase with the --passphrase-file flag.

You have the opportunity to attach metadata to your key with the --meta flag (more on this below).

This command will generate a "mnemonic", along with a public and private key and print it on the output.

Important

The mnemonic is very important as it acts as a backup key, from which the wallet can restore all your keys. As a result, it has to be kept safe and secret. If lost, you won't be able to retrieve your keys. If stolen, the thief will be able to use your keys.

Also, you’ll see an output with your public and private key. Do not share your private key. You don’t need to save this information anywhere, as you’ll be able to retrieve it with specific commands.

Import a wallet

If you want to restore your wallet, use the following command:

vegawallet import --wallet "YOUR_WALLET" --mnemonic-file "PATH_TO_YOUR_MNEMONIC"

The flag --mnemonic-file is used to locate the file that contains the mnemonic.

It will then prompt you to input a passphrase, and then confirm that passphrase. You'll use this username and passphrase to login to Vega Console. You can also specify the passphrase with the --passphrase-file flag.

This command is only able to import the wallet from which you can re-generate your key pairs.

List registered wallets

If you want to list all the registered wallets, use the following command:

vegawallet list

Generate a key pair

To generate a key pair on the given wallet, use the following command:

vegawallet key generate --wallet "YOUR_WALLET"

It will then prompt you to input a passphrase. You can also specify the passphrase with the --passphrase-file flag.

If the wallet does not exist, it will automatically create one. See "Create a wallet" for more information.

You have the opportunity to attach metadata to your key with the --meta flag (more on this below).

Add metadata to your keys

For better key management, you may want to add metadata to your key pairs. This is done with the following command:

vegawallet key annotate --wallet "YOUR_WALLET" --meta "key1:value1;key2:value2" --pubkey "YOUR_HEX_PUBLIC_KEY"

An item of metadata is represented as a key-value property.

Give an alias to a key

You can give to each key pair a nickname/alias with a metadata name. For example:

vegawallet key annotate --wallet "YOUR_WALLET" --meta "name:my-alias" --pubkey "YOUR_HEX_PUBLIC_KEY"
Important

This command does not insert the new metadata into the existing ones, it replaces them. If you want to keep the previous metadata, ensure to add them to your update.

Tainting a key pair

You may want to prevent the use of a key by "tainting" it with the following command:

vegawallet key taint --wallet "YOUR_WALLET" --pubkey "YOUR_HEX_PUBIC_KEY"

It will then prompt you to input a passphrase. You can also specify the passphrase with the --passphrase-file flag.

Untainting a key pair

You may have tainted a key by mistake. If you want to untaint it, use the following command:

vegawallet key untaint --wallet "YOUR_WALLET" --pubkey "YOUR_HEX_PUBIC_KEY"

It will then prompt you to input a passphrase. You can also specify the passphrase with the --passphrase-file flag.

Important

If you tainted a key for security reasons, you should not untaint it.

List the key pairs

To list your key pairs, use the following command:

vegawallet key list --wallet "YOUR_WALLET"

It will then prompt you to input a passphrase. You can also specify the passphrase with the --passphrase-file flag.

Important

This will also return the private key. Never expose this command or its content to the outside world.

Sign and verify messages

To sign and verify any kind of base-64 encoded messages, use the following commands:

vegawallet sign --wallet "YOUR_WALLET" --pubkey "YOUR_HEX_PUBIC_KEY" --message "c3BpY2Ugb2YgZHVuZQo="
vegawallet verify --pubkey "YOUR_HEX_PUBIC_KEY" --message "c3BpY2Ugb2YgZHVuZQo=" --signature "76f978asd6fa8s76f"

It will then prompt you to input a passphrase. You can also specify the passphrase with the --passphrase-file flag.

List the networks

During wallet initialisation, default networks are installed. You can list them with the following command:

vegawallet network list

Import a network

If you want to import a network configuration from a local file, use the following command:

vegawallet network import --from-file "PATH_TO_FILE"

Or, from a URL:

vegawallet network import --from-url "URL_TO_FILE"

You can override the imported network name using the --with-name flag.

Run the service

Once a wallet and a network have been set up, you can run the wallet with the following command:

vegawallet service run --network "YOUR_NETWORK"

To run the wallet and open up a local version of Vega Console, the trading UI, use the following command:

vegawallet service run --network "YOUR_NETWORK" --console-proxy

To terminate the process, such as if you want to run other commands in Wallet, use ctrl+c.

Ad-blockers

If you're running an ad/tracker blocker, and you're getting errors, it may be blocking the node from connecting. Try allowlisting lb.testnet.vega.xyz and refreshing.

Send a command

Instead of sending a command through the API, you can send it through the command line, use the following command:

vegawallet command --pubkey "YOUR_HEX_PUBIC_KEY" --wallet "YOUR_WALLET" --network "YOUR_NETWORK" '{"THE_COMMAND": {...}, "propagate": true}'

Isolate a key pair

On HD wallets, the wallet node is used to generate (and retrieve) key pairs. For security purpose, you may not want to store the wallet node on the machine running the node, because it can be compromised. So, you might want to isolate a single key pair, without the wallet node, in an "isolated wallet".

vegawallet key isolate --pubkey "YOUR_HEX_PUBIC_KEY" --wallet "YOUR_WALLET"

Documentation

Index

Constants

View Source
const (
	DefaultForwarderRetryCount = 5
	ForwarderRequestTimeout    = 5 * time.Second
)

Variables

View Source
var (
	ErrDoNotSetPubKeyInCommand = errors.New("do not set the public key through the command, use --pubkey flag instead")
)
View Source
var ErrNetworkDoesNotHaveGRPCHostConfigured = errors.New("network does not have gRPC hosts configured")
View Source
var SupportedLogLevels = []string{
	zapcore.DebugLevel.String(),
	zapcore.InfoLevel.String(),
	zapcore.WarnLevel.String(),
	zapcore.ErrorLevel.String(),
}

Functions

func Build added in v0.10.0

func Build(output, level string) (*zap.Logger, error)

func BuildCmdAnnotateKey added in v0.10.0

func BuildCmdAnnotateKey(w io.Writer, handler AnnotateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdCommand added in v0.10.0

func BuildCmdCommand(w io.Writer, handler SendCommandHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeKey added in v0.10.0

func BuildCmdDescribeKey(w io.Writer, handler DescribeKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeNetwork added in v0.10.0

func BuildCmdDescribeNetwork(w io.Writer, handler DescribeNetworkHandler, rf *RootFlags) *cobra.Command

func BuildCmdGenerateKey added in v0.10.0

func BuildCmdGenerateKey(w io.Writer, handler GenerateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdGetInfoWallet added in v0.10.0

func BuildCmdGetInfoWallet(w io.Writer, handler GetInfoWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdGetVersion added in v0.10.0

func BuildCmdGetVersion(w io.Writer, handler GetVersionHandler, rf *RootFlags) *cobra.Command

func BuildCmdImportNetwork added in v0.10.0

func BuildCmdImportNetwork(w io.Writer, handler ImportNetworkFromSourceHandler, rf *RootFlags) *cobra.Command

func BuildCmdImportWallet added in v0.10.0

func BuildCmdImportWallet(w io.Writer, handler ImportWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdInit added in v0.10.0

func BuildCmdInit(w io.Writer, handler InitHandler, rf *RootFlags) *cobra.Command

func BuildCmdIsolateKey added in v0.10.0

func BuildCmdIsolateKey(w io.Writer, handler IsolateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdListKeys added in v0.10.0

func BuildCmdListKeys(w io.Writer, handler ListKeysHandler, rf *RootFlags) *cobra.Command

func BuildCmdListNetworks added in v0.10.0

func BuildCmdListNetworks(w io.Writer, handler ListNetworksHandler, rf *RootFlags) *cobra.Command

func BuildCmdListWallets added in v0.10.0

func BuildCmdListWallets(w io.Writer, handler ListWalletsHandler, rf *RootFlags) *cobra.Command

func BuildCmdRoot added in v0.10.0

func BuildCmdRoot(w io.Writer, vh CheckVersionHandler) *cobra.Command

func BuildCmdRunService added in v0.10.0

func BuildCmdRunService(w io.Writer, handler RunServiceHandler, rf *RootFlags) *cobra.Command

func BuildCmdSendCommand added in v0.10.0

func BuildCmdSendCommand(w io.Writer, handler SendCommandHandler, rf *RootFlags) *cobra.Command

func BuildCmdSendTx added in v0.10.0

func BuildCmdSendTx(w io.Writer, handler SendTxHandler, rf *RootFlags) *cobra.Command

func BuildCmdSignMessage added in v0.10.0

func BuildCmdSignMessage(w io.Writer, handler SignMessageHandler, rf *RootFlags) *cobra.Command

func BuildCmdTaintKey added in v0.10.0

func BuildCmdTaintKey(w io.Writer, handler TaintKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdUntaintKey added in v0.10.0

func BuildCmdUntaintKey(w io.Writer, handler UntaintKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdVerifyMessage added in v0.10.0

func BuildCmdVerifyMessage(w io.Writer, handler VerifyMessageHandler, rf *RootFlags) *cobra.Command

func DefaultConfig added in v0.10.0

func DefaultConfig() zap.Config

func Execute

func Execute(w *Writer)

func NewCmdAnnotateKey added in v0.10.0

func NewCmdAnnotateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdCommand added in v0.10.0

func NewCmdCommand(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeKey added in v0.10.0

func NewCmdDescribeKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeNetwork added in v0.10.0

func NewCmdDescribeNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdGenerateKey added in v0.10.0

func NewCmdGenerateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdGetInfoWallet added in v0.10.0

func NewCmdGetInfoWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdImportNetwork added in v0.10.0

func NewCmdImportNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdImportWallet added in v0.10.0

func NewCmdImportWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdInit added in v0.10.0

func NewCmdInit(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdIsolateKey added in v0.10.0

func NewCmdIsolateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdKey added in v0.10.0

func NewCmdKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListKeys added in v0.10.0

func NewCmdListKeys(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListNetworks added in v0.10.0

func NewCmdListNetworks(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListWallets added in v0.10.0

func NewCmdListWallets(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdNetwork added in v0.10.0

func NewCmdNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRoot added in v0.10.0

func NewCmdRoot(w io.Writer) *cobra.Command

func NewCmdRunService added in v0.10.0

func NewCmdRunService(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSend added in v0.10.0

func NewCmdSend(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSendCommand added in v0.10.0

func NewCmdSendCommand(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSendTx added in v0.10.0

func NewCmdSendTx(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdService added in v0.10.0

func NewCmdService(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSignMessage added in v0.10.0

func NewCmdSignMessage(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdTaintKey added in v0.10.0

func NewCmdTaintKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdUntaintKey added in v0.10.0

func NewCmdUntaintKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdVerifyMessage added in v0.10.0

func NewCmdVerifyMessage(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdVersion added in v0.10.0

func NewCmdVersion(w io.Writer, rf *RootFlags) *cobra.Command

func NewUnsupportedFlagValueError added in v0.10.0

func NewUnsupportedFlagValueError(level string) error

func PrintAnnotateKeyResponse added in v0.10.0

func PrintAnnotateKeyResponse(w io.Writer, req *wallet.AnnotateKeyRequest)

func PrintDescribeKeyResponse added in v0.10.0

func PrintDescribeKeyResponse(w io.Writer, resp *wallet.DescribeKeyResponse)

func PrintDescribeNetworkResponse added in v0.10.0

func PrintDescribeNetworkResponse(w io.Writer, resp *network.DescribeNetworkResponse)

func PrintGenerateKeyResponse added in v0.10.0

func PrintGenerateKeyResponse(w io.Writer, resp *wallet.GenerateKeyResponse)

func PrintGetVersionResponse added in v0.10.0

func PrintGetVersionResponse(w io.Writer, resp *version.GetVersionResponse)

func PrintGetWalletInfoResponse added in v0.10.0

func PrintGetWalletInfoResponse(w io.Writer, resp *wallet.GetWalletInfoResponse)

func PrintImportNetworkResponse added in v0.10.0

func PrintImportNetworkResponse(w io.Writer, resp *network.ImportNetworkFromSourceResponse)

func PrintImportWalletResponse added in v0.10.0

func PrintImportWalletResponse(w io.Writer, resp *wallet.ImportWalletResponse)

func PrintInitResponse added in v0.10.0

func PrintInitResponse(w io.Writer, resp *InitResponse)

func PrintIsolateKeyResponse added in v0.10.0

func PrintIsolateKeyResponse(w io.Writer, resp *wallet.IsolateKeyResponse)

func PrintListKeysResponse added in v0.10.0

func PrintListKeysResponse(w io.Writer, resp *wallet.ListKeysResponse)

func PrintListNetworksResponse added in v0.10.0

func PrintListNetworksResponse(w io.Writer, resp *network.ListNetworksResponse)

func PrintListWalletsResponse added in v0.10.0

func PrintListWalletsResponse(w io.Writer, resp *wallet.ListWalletsResponse)

func PrintSignMessageResponse added in v0.10.0

func PrintSignMessageResponse(w io.Writer, req *wallet.SignMessageResponse)

func PrintTaintKeyResponse added in v0.10.0

func PrintTaintKeyResponse(w io.Writer)

func PrintUntaintKeyResponse added in v0.10.0

func PrintUntaintKeyResponse(w io.Writer)

func PrintVerifyMessageResponse added in v0.10.0

func PrintVerifyMessageResponse(w io.Writer, isValid bool)

func RunService added in v0.10.0

func RunService(w io.Writer, rf *RootFlags, f *RunServiceFlags) error

func SendCommand added in v0.10.0

func SendCommand(w io.Writer, rf *RootFlags, req *SendCommandRequest) error

func SendTx added in v0.10.0

func SendTx(w io.Writer, rf *RootFlags, req *SendTxRequest) error

func ValidateLogLevel added in v0.10.0

func ValidateLogLevel(level string) error

Types

type AnnotateKeyFlags added in v0.10.0

type AnnotateKeyFlags struct {
	Wallet         string
	PubKey         string
	PassphraseFile string
	Clear          bool
	RawMetadata    []string
}

func (*AnnotateKeyFlags) Validate added in v0.10.0

func (f *AnnotateKeyFlags) Validate() (*wallet.AnnotateKeyRequest, error)

type AnnotateKeyHandler added in v0.10.0

type AnnotateKeyHandler func(*wallet.AnnotateKeyRequest) error

type CheckVersionHandler added in v0.10.0

type CheckVersionHandler func() (*semver.Version, error)

type DescribeKeyFlags added in v0.10.0

type DescribeKeyFlags struct {
	Wallet         string
	PassphraseFile string
	PubKey         string
}

func (*DescribeKeyFlags) Validate added in v0.10.0

func (f *DescribeKeyFlags) Validate() (*wallet.DescribeKeyRequest, error)

type DescribeKeyHandler added in v0.10.0

type DescribeKeyHandler func(*wallet.DescribeKeyRequest) (*wallet.DescribeKeyResponse, error)

type DescribeNetworkFlags added in v0.10.0

type DescribeNetworkFlags struct {
	Network string
}

func (*DescribeNetworkFlags) Validate added in v0.10.0

type DescribeNetworkHandler added in v0.10.0

type DescribeNetworkHandler func(*network.DescribeNetworkRequest) (*network.DescribeNetworkResponse, error)

type Error added in v0.10.0

type Error struct {
	Err string `json:"error"`
}

type GenerateKeyFlags added in v0.10.0

type GenerateKeyFlags struct {
	Wallet         string
	PassphraseFile string
	RawMetadata    []string
}

func (*GenerateKeyFlags) Validate added in v0.10.0

func (f *GenerateKeyFlags) Validate() (*wallet.GenerateKeyRequest, error)

type GenerateKeyHandler added in v0.10.0

type GetInfoWalletHandler added in v0.10.0

type GetInfoWalletHandler func(*wallet.GetWalletInfoRequest) (*wallet.GetWalletInfoResponse, error)

type GetVersionHandler added in v0.10.0

type GetVersionHandler func() *version.GetVersionResponse

type GetWalletInfoFlags added in v0.10.0

type GetWalletInfoFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*GetWalletInfoFlags) Validate added in v0.10.0

type ImportNetworkFlags added in v0.10.0

type ImportNetworkFlags struct {
	FilePath string
	URL      string
	Name     string
	Force    bool
}

func (*ImportNetworkFlags) Validate added in v0.10.0

type ImportNetworkFromSourceHandler added in v0.10.0

type ImportWalletFlags added in v0.10.0

type ImportWalletFlags struct {
	Wallet         string
	PassphraseFile string
	MnemonicFile   string
	Version        uint32
}

func (*ImportWalletFlags) Validate added in v0.10.0

type ImportWalletHandler added in v0.10.0

type ImportWalletHandler func(*wallet.ImportWalletRequest) (*wallet.ImportWalletResponse, error)

type InitFlags added in v0.10.0

type InitFlags struct {
	Force bool
}

type InitHandler added in v0.10.0

type InitHandler func(home string, f *InitFlags) (*InitResponse, error)

type InitResponse added in v0.10.0

type InitResponse struct {
	RSAKeys struct {
		PublicKeyFilePath  string `json:"publicKeyFilePath"`
		PrivateKeyFilePath string `json:"privateKeyFilePath"`
	} `json:"rsaKeys"`
	NetworksHome string `json:"networksHome"`
}

func Init added in v0.10.0

func Init(home string, f *InitFlags) (*InitResponse, error)

type IsolateKeyFlags added in v0.10.0

type IsolateKeyFlags struct {
	Wallet         string
	PubKey         string
	PassphraseFile string
}

func (*IsolateKeyFlags) Validate added in v0.10.0

func (f *IsolateKeyFlags) Validate() (*wallet.IsolateKeyRequest, error)

type IsolateKeyHandler added in v0.10.0

type IsolateKeyHandler func(*wallet.IsolateKeyRequest) (*wallet.IsolateKeyResponse, error)

type ListKeysFlags added in v0.10.0

type ListKeysFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*ListKeysFlags) Validate added in v0.10.0

func (f *ListKeysFlags) Validate() (*wallet.ListKeysRequest, error)

type ListKeysHandler added in v0.10.0

type ListKeysHandler func(*wallet.ListKeysRequest) (*wallet.ListKeysResponse, error)

type ListNetworksHandler added in v0.10.0

type ListNetworksHandler func() (*network.ListNetworksResponse, error)

type ListWalletsHandler added in v0.10.0

type ListWalletsHandler func() (*wallet.ListWalletsResponse, error)

type LoggerError added in v0.10.0

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

func UnsupportedLoggerLevelError added in v0.10.0

func UnsupportedLoggerLevelError(l string) LoggerError

func (LoggerError) Error added in v0.10.0

func (e LoggerError) Error() string

type RootFlags added in v0.10.0

type RootFlags struct {
	Output         string
	Home           string
	NoVersionCheck bool
}

func (*RootFlags) Validate added in v0.10.0

func (f *RootFlags) Validate() error

type RunServiceFlags added in v0.10.0

type RunServiceFlags struct {
	Network      string
	StartConsole bool
	NoBrowser    bool
	LogLevel     string
}

func (*RunServiceFlags) Validate added in v0.10.0

func (f *RunServiceFlags) Validate() error

type RunServiceHandler added in v0.10.0

type RunServiceHandler func(io.Writer, *RootFlags, *RunServiceFlags) error

type SendCommandFlags added in v0.10.0

type SendCommandFlags struct {
	Network        string
	NodeAddress    string
	Wallet         string
	PubKey         string
	PassphraseFile string
	Retries        uint64
	LogLevel       string
	RawCommand     string
}

func (*SendCommandFlags) Validate added in v0.10.0

func (f *SendCommandFlags) Validate() (*SendCommandRequest, error)

type SendCommandHandler added in v0.10.0

type SendCommandHandler func(io.Writer, *RootFlags, *SendCommandRequest) error

type SendCommandRequest added in v0.10.0

type SendCommandRequest struct {
	Network     string
	NodeAddress string
	Wallet      string
	Passphrase  string
	Retries     uint64
	LogLevel    string
	Request     *walletpb.SubmitTransactionRequest
}

type SendTxFlags added in v0.10.0

type SendTxFlags struct {
	Network     string
	NodeAddress string
	Retries     uint64
	LogLevel    string
	RawTx       string
}

func (*SendTxFlags) Validate added in v0.10.0

func (f *SendTxFlags) Validate() (*SendTxRequest, error)

type SendTxHandler added in v0.10.0

type SendTxHandler func(io.Writer, *RootFlags, *SendTxRequest) error

type SendTxRequest added in v0.10.0

type SendTxRequest struct {
	Network     string
	NodeAddress string
	Retries     uint64
	LogLevel    string
	Tx          *commandspb.Transaction
}

type SignMessageFlags added in v0.10.0

type SignMessageFlags struct {
	Wallet         string
	PubKey         string
	Message        string
	PassphraseFile string
}

func (*SignMessageFlags) Validate added in v0.10.0

func (f *SignMessageFlags) Validate() (*wallet.SignMessageRequest, error)

type SignMessageHandler added in v0.10.0

type SignMessageHandler func(*wallet.SignMessageRequest) (*wallet.SignMessageResponse, error)

type TaintKeyFlags added in v0.10.0

type TaintKeyFlags struct {
	Wallet         string
	PubKey         string
	PassphraseFile string
}

func (*TaintKeyFlags) Validate added in v0.10.0

func (f *TaintKeyFlags) Validate() (*wallet.TaintKeyRequest, error)

type TaintKeyHandler added in v0.10.0

type TaintKeyHandler func(*wallet.TaintKeyRequest) error

type UntaintKeyFlags added in v0.10.0

type UntaintKeyFlags struct {
	Wallet         string
	PubKey         string
	PassphraseFile string
}

func (*UntaintKeyFlags) Validate added in v0.10.0

func (f *UntaintKeyFlags) Validate() (*wallet.UntaintKeyRequest, error)

type UntaintKeyHandler added in v0.10.0

type UntaintKeyHandler func(*wallet.UntaintKeyRequest) error

type VerifyMessageFlags added in v0.10.0

type VerifyMessageFlags struct {
	Signature string
	Message   string
	PubKey    string
}

func (*VerifyMessageFlags) Validate added in v0.10.0

type VerifyMessageHandler added in v0.10.0

type VerifyMessageHandler func(*crypto.VerifyMessageRequest) (bool, error)

type Writer added in v0.10.0

type Writer struct {
	Out io.Writer
	Err io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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