Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

fixes color output for keys and seed in dero-wallet-cli #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/dero-wallet-cli/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ func usage(w io.Writer) {
func display_seed(l *readline.Instance, wallet *walletapi.Wallet) {
seed := wallet.GetSeed()
fmt.Fprintf(l.Stderr(), color_green+"PLEASE NOTE: the following 25 words can be used to recover access to your wallet. Please write them down and store them somewhere safe and secure. Please do not store them in your email or on file storage services outside of your immediate control."+color_white+"\n")
fmt.Fprintf(os.Stderr, color_red+"%s"+color_white+"\n", seed)
fmt.Fprintf(l.Stderr(), color_red+"%s"+color_white+"\n", seed)

}

Expand All @@ -782,7 +782,7 @@ func display_spend_key(l *readline.Instance, wallet *walletapi.Wallet) {

keys := wallet.Get_Keys()
if !account.ViewOnly {
fmt.Fprintf(os.Stderr, "spend key secret : "+color_red+"%s"+color_white+"\n", keys.Spendkey_Secret)
fmt.Fprintf(l.Stderr(), "spend key secret : "+color_red+"%s"+color_white+"\n", keys.Spendkey_Secret)
}
fmt.Fprintf(os.Stderr, "spend key public : %s\n", keys.Spendkey_Public)
}
Expand All @@ -791,7 +791,7 @@ func display_spend_key(l *readline.Instance, wallet *walletapi.Wallet) {
func display_view_key(l *readline.Instance, wallet *walletapi.Wallet) {

keys := wallet.Get_Keys()
fmt.Fprintf(os.Stderr, "view key secret : "+color_yellow+"%s"+color_white+"\n", keys.Viewkey_Secret)
fmt.Fprintf(l.Stderr(), "view key secret : "+color_yellow+"%s"+color_white+"\n", keys.Viewkey_Secret)
fmt.Fprintf(os.Stderr, "view key public : %s\n", keys.Viewkey_Public)

}
Expand Down