account

package
v0.0.0-...-f47aca1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MinPassLength = 8

MinPassLength is the minimum acceptable password length

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(prompt string, buf *bufio.Reader) (account string, err error)

func GetConfirmation

func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error)

func GetPassword

func GetPassword(prompt string, buf *bufio.Reader) (password string, err error)

GetPassword will prompt for a password one-time (to sign a tx) It enforces the password length

func GetString

func GetString(prompt string, buf *bufio.Reader) (string, error)

GetString simply returns the trimmed string output of a given reader.

func PrintPrefixed

func PrintPrefixed(msg string)

PrintPrefixed prints a string with > prefixed for use in prompts.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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