cmd

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Entropy12Words = 128
	Entropy24Words = 256
)

Variables

View Source
var Cli struct {
	Wallet struct {
		Create walletCreateCmd `cmd:"" help:"Create new Ethereum wallets"`
	} `cmd:"" help:"Manage Ethereum wallets"`

	KeyStore struct {
		Create keystoreCreateCmd `cmd:"" help:"Manage Ethereum keystores"`
		List   keystoreListCmd   `cmd:"" help:"List all wallets from the keystore"`
	} `cmd:"" name:"keystore" help:"Manage Ethereum KeyStores"`

	Seed struct {
		Create seedCreateCmd `cmd:"" help:"Create a new seed"`
	} `cmd:"" help:"Manage cryptographic seeds for Ethereum wallets"`

	OutputFormat string     `name:"output" short:"o" enum:"json,csv,text,table" help:"Set the output format" default:"text"`
	Log          logOptions `embed:"" prefix:"log-"`

	Version versionCmd `cmd:"" help:"Display ethw version"`
}

Functions

This section is empty.

Types

type MnemonicData added in v0.3.3

type MnemonicData struct {
	Alias    string
	Mnemonic string
}

MnemonicData represents the seed information for a wallet.

func (*MnemonicData) UnmarshalText added in v0.3.3

func (sd *MnemonicData) UnmarshalText(raw []byte) error

UnmarshalText unmarshals the SeedData from text

type WalletData added in v0.3.3

type WalletData struct {
	Mnemonic       string
	Password       string
	DerivationPath string
}

func (*WalletData) UnmarshalText added in v0.3.3

func (wd *WalletData) UnmarshalText(raw []byte) error

Jump to

Keyboard shortcuts

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