@@ -17,7 +17,7 @@ import (
1717 "decred.org/dcrwallet/v2/errors"
1818 "decred.org/dcrwallet/v2/walletseed"
1919 "github.com/decred/dcrd/hdkeychain/v3"
20- "golang.org/x/crypto/ssh/terminal "
20+ "golang.org/x/term "
2121)
2222
2323// ProvideSeed is used to prompt for the wallet seed which maybe required during
@@ -53,7 +53,7 @@ func ProvidePrivPassphrase() ([]byte, error) {
5353 prompt := "Enter the private passphrase of your wallet: "
5454 for {
5555 fmt .Print (prompt )
56- pass , err := terminal .ReadPassword (int (os .Stdin .Fd ()))
56+ pass , err := term .ReadPassword (int (os .Stdin .Fd ()))
5757 if err != nil {
5858 return nil , err
5959 }
@@ -125,8 +125,8 @@ func PassPrompt(reader *bufio.Reader, prefix string, confirm bool) ([]byte, erro
125125 var pass []byte
126126 var err error
127127 fd := int (os .Stdin .Fd ())
128- if terminal .IsTerminal (fd ) {
129- pass , err = terminal .ReadPassword (fd )
128+ if term .IsTerminal (fd ) {
129+ pass , err = term .ReadPassword (fd )
130130 } else {
131131 pass , err = reader .ReadBytes ('\n' )
132132 if errors .Is (err , io .EOF ) {
@@ -147,7 +147,7 @@ func PassPrompt(reader *bufio.Reader, prefix string, confirm bool) ([]byte, erro
147147 }
148148
149149 fmt .Print ("Confirm passphrase: " )
150- confirm , err := terminal .ReadPassword (int (os .Stdin .Fd ()))
150+ confirm , err := term .ReadPassword (int (os .Stdin .Fd ()))
151151 if err != nil {
152152 return nil , err
153153 }
0 commit comments