wallet

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PasswordFlag *cli.StringFlag = &cli.StringFlag{
		Name:    "password",
		Aliases: []string{"p"},
		Usage:   "The password to secure the wallet with (if not already set)",
	}
	SavePasswordFlag *cli.StringFlag = &cli.StringFlag{
		Name:    "save-password",
		Aliases: []string{"s"},
		Usage:   "Save the node wallet password to disk, so the wallet can be automatically reloaded upon starting up",
	}
)

Functions

func InitWallet added in v0.2.3

func InitWallet(c *cli.Context, hd *client.HyperdriveClient) error

If hd is provided, this is assumed to be called from another function so the wallet check will be skipped.

func PromptExistingPassword added in v0.2.3

func PromptExistingPassword() string

Prompt for the password to a wallet that already exists

func PromptMnemonic

func PromptMnemonic() string

Prompt for a recovery mnemonic phrase

func PromptNewPassword added in v0.2.3

func PromptNewPassword() string

Prompt for a new wallet password

func RegisterCommands

func RegisterCommands(app *cli.App, name string, aliases []string)

Register commands

Types

type PersonalSignature

type PersonalSignature struct {
	Address   common.Address `json:"address"`
	Message   string         `json:"msg"`
	Signature string         `json:"sig"`
	Version   string         `json:"version"` // beaconcha.in expects a string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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