prompt

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: ISC, ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivatePass

func PrivatePass(
	reader *bufio.Reader, legacyKeyStore *keystore.Store) ([]byte, error)

PrivatePass prompts the user for a private passphrase with varying behavior depending on whether the passed legacy keystore exists. When it does, the user is prompted for the existing passphrase which is then used to unlock it. On the other hand, when the legacy keystore is nil, the user is prompted for a new private passphrase. All prompts are repeated until the user enters a valid response.

func ProvidePrivPassphrase

func ProvidePrivPassphrase() ([]byte, error)

maybe required during upgrades.

func ProvideSeed

func ProvideSeed() ([]byte, error)

upgrades.

func PublicPass

func PublicPass(
	reader *bufio.Reader, privPass []byte,
	defaultPubPassphrase, configPubPassphrase []byte) ([]byte, error)

PublicPass prompts the user whether they want to add an additional layer of encryption to the wallet. When the user answers yes and there is already a public passphrase provided via the passed config, it prompts them whether or not to use that configured passphrase. It will also detect when the same passphrase is used for the private and public passphrase and prompt the user if they are sure they want to use the same passphrase for both. Finally, all prompts are repeated until the user enters a valid response.

func Seed

func Seed(

	reader *bufio.Reader) ([]byte, error)

enters a valid response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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