wallet

package
v2.0.0-b2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 22 Imported by: 5

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

func InitWallet(c *cli.Context, rp *client.Client) error

func PromptExistingPassword

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

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