Browse Source

utf8 encode seed (old wallets)

283
ThomasV 11 years ago
parent
commit
90f5133983
  1. 4
      lib/wallet.py

4
lib/wallet.py

@ -1557,7 +1557,7 @@ class OldWallet(Deterministic_Wallet):
self.create_account(mpk)
def get_seed(self, password):
seed = pw_decode(self.seed, password)
seed = pw_decode(self.seed, password).encode('utf8')
return seed
def check_password(self, password):
@ -1566,7 +1566,7 @@ class OldWallet(Deterministic_Wallet):
def get_mnemonic(self, password):
import mnemonic
s = pw_decode(self.seed, password)
s = self.get_seed(password)
return ' '.join(mnemonic.mn_encode(s))

Loading…
Cancel
Save