Documentation ¶
Index ¶
- Constants
- func GetAccount(prompt string, buf *bufio.Reader) (account string, err error)
- func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error)
- func GetPassword(prompt string, buf *bufio.Reader) (password string, err error)
- func GetString(prompt string, buf *bufio.Reader) (string, error)
- func PrintPrefixed(msg string)
Constants ¶
View Source
const MinPassLength = 8
MinPassLength is the minimum acceptable password length
Variables ¶
This section is empty.
Functions ¶
func GetPassword ¶
GetPassword will prompt for a password one-time (to sign a tx) It enforces the password length
func PrintPrefixed ¶
func PrintPrefixed(msg string)
PrintPrefixed prints a string with > prefixed for use in prompts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.