prompt

package
v0.0.0-...-c45a497 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(r *bufio.Reader) (privPass, pubPass, seed []byte, imported bool, err error)

Setup prompts for, from a buffered reader, the private and/or public encryption passphrases to secure a wallet and a previously derived wallet seed to use, if any. privPass and pubPass will always be non-nil values (private encryption is required and choosing to not use public data encryption will still encrypt the data with an insecure default), and a randomly generated seed of the recommended length will be generated and returned after the user has confirmed the seed has been backed up to a secure location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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