electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 90f5133983bcf9856745333e77e011b5648dad83
parent 640d6641aa9b7a4a1f380faf0273f2eca5f3a3cd
Author: ThomasV <thomasv@gitorious>
Date:   Mon,  5 May 2014 01:19:04 +0200

utf8 encode seed (old wallets)

Diffstat:
Mlib/wallet.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/wallet.py b/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))