electrum

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

commit 565c53e05496fe2003a0ad8a6ccb3565021052a7
parent 1181f4ef016ef4fb4897d363de1eccc4e9496a90
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 17 May 2012 08:42:40 +0200

fix: encrypted seed might be empty

Diffstat:
Mlib/wallet.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -393,11 +393,11 @@ class Wallet: for_change = True else: raise BaseException("unknown address") - if not self.seed: return None try: seed = self.pw_decode( self.seed, password) except: raise BaseException("Invalid password") + if not seed: return None secexp = self.stretch_key(seed) secexp = ( secexp + self.get_sequence(n,for_change) ) % order