Skip to content

Commit

Permalink
DERO Homomorphic Encryption Testnet Release6
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainDero committed Dec 27, 2020
1 parent 5c59355 commit 5312691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cmd/dero-wallet-cli/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
4 changes: 2 additions & 2 deletions walletapi/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 {
Expand Down

0 comments on commit 5312691

Please sign in to comment.