From b5aae4a119fb7acc45292dd739a3e1f521d3f498 Mon Sep 17 00:00:00 2001 From: Olanrewaju Collins Date: Fri, 22 May 2020 20:35:40 +0100 Subject: [PATCH] Do not save seed for restored wallets (#137) --- multiwallet.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/multiwallet.go b/multiwallet.go index f88fd014..cc641265 100644 --- a/multiwallet.go +++ b/multiwallet.go @@ -302,17 +302,11 @@ func (mw *MultiWallet) CreateNewWallet(walletName, privatePassphrase string, pri func (mw *MultiWallet) RestoreWallet(walletName, seedMnemonic, privatePassphrase string, privatePassphraseType int32) (*Wallet, error) { - encryptedSeed, err := encryptWalletSeed([]byte(privatePassphrase), seedMnemonic) - if err != nil { - return nil, err - } - wallet := &Wallet{ Name: walletName, PrivatePassphraseType: privatePassphraseType, IsRestored: true, HasDiscoveredAccounts: false, - EncryptedSeed: encryptedSeed, } return mw.saveNewWallet(wallet, func() error {