DERO Homomorphic Encryption Testnet Release6

This commit is contained in:
Captain 2020-12-27 14:51:57 +00:00
parent 5c5935519a
commit 531269103e
No known key found for this signature in database
GPG Key ID: 18CDB3ED5E85D2D4
3 changed files with 5 additions and 4 deletions

View File

@ -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())
}

View File

@ -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")

View File

@ -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 {