DERO Homomorphic Encryption Testnet Release6
This commit is contained in:
parent
5c5935519a
commit
531269103e
@ -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) {
|
func display_spend_key(l *readline.Instance, wallet *walletapi.Wallet_Disk) {
|
||||||
|
|
||||||
keys := wallet.Get_Keys()
|
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())
|
fmt.Fprintf(os.Stderr, "public key: %s\n", keys.Public.StringHex())
|
||||||
}
|
}
|
||||||
|
@ -20,4 +20,4 @@ import "github.com/blang/semver"
|
|||||||
|
|
||||||
// right now it has to be manually changed
|
// right now it has to be manually changed
|
||||||
// do we need to include git commitsha??
|
// 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")
|
||||||
|
@ -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
|
// 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
|
// 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 {
|
if _, err = os.Stat(filename); err == nil {
|
||||||
err = fmt.Errorf("File '%s' already exists", filename)
|
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
|
// generate account keys
|
||||||
if wd.Wallet_Memory, err = Create_Encrypted_Wallet_Memory(password, seed); err != nil {
|
if wd.Wallet_Memory, err = Create_Encrypted_Wallet_Memory(password, seed); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user