diff --git a/cmd/dero-wallet-cli/prompt.go b/cmd/dero-wallet-cli/prompt.go index 4ca97cb6..652c566f 100644 --- a/cmd/dero-wallet-cli/prompt.go +++ b/cmd/dero-wallet-cli/prompt.go @@ -754,7 +754,8 @@ func display_seed(l *readline.Instance, wallet *walletapi.Wallet_Disk) { func display_spend_key(l *readline.Instance, wallet *walletapi.Wallet_Disk) { keys := wallet.Get_Keys() - fmt.Fprintf(os.Stderr, "secret key: "+color_red+"%s"+color_white+"\n", keys.Secret.Text(16)) + h := "0000000000000000000000000000000000000000000000"+keys.Secret.Text(16) + fmt.Fprintf(os.Stderr, "secret key: "+color_red+"%s"+color_white+"\n", h[len(h)-64:]) fmt.Fprintf(os.Stderr, "public key: %s\n", keys.Public.StringHex()) } diff --git a/config/version.go b/config/version.go index 4a112b44..f8154bf2 100644 --- a/config/version.go +++ b/config/version.go @@ -20,4 +20,4 @@ import "github.com/blang/semver" // right now it has to be manually changed // do we need to include git commitsha?? -var Version = semver.MustParse("3.0.0-22.DEROHE.alpha+27122020") +var Version = semver.MustParse("3.0.0-23.DEROHE.alpha+27122020") diff --git a/walletapi/db.go b/walletapi/db.go index 4daa2a62..8b0e8812 100644 --- a/walletapi/db.go +++ b/walletapi/db.go @@ -39,7 +39,7 @@ type Wallet_Disk struct { // when smart contracts are implemented, each will have it's own universe to track and maintain transactions // this file implements the encrypted data store at rest -func Create_Encrypted_Wallet(filename string, password string, seed *crypto.BNRed) (w *Wallet_Disk, err error) { +func Create_Encrypted_Wallet(filename string, password string, seed *crypto.BNRed) (wd *Wallet_Disk, err error) { if _, err = os.Stat(filename); err == nil { err = fmt.Errorf("File '%s' already exists", filename) @@ -51,7 +51,7 @@ func Create_Encrypted_Wallet(filename string, password string, seed *crypto.BNRe } - wd := &Wallet_Disk{filename: filename} + wd = &Wallet_Disk{filename: filename} // generate account keys if wd.Wallet_Memory, err = Create_Encrypted_Wallet_Memory(password, seed); err != nil {