git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1181f4e
)
fix: encrypted seed might be empty
author
ThomasV
<thomasv@gitorious>
Thu, 17 May 2012 06:42:40 +0000 (08:42 +0200)
committer
ThomasV
<thomasv@gitorious>
Thu, 17 May 2012 06:42:40 +0000 (08:42 +0200)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
7d49d72
..
082adac
100644
(file)
--- 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