|
@ -361,7 +361,10 @@ class Wallet: |
|
|
for_change = True |
|
|
for_change = True |
|
|
else: |
|
|
else: |
|
|
raise BaseException("unknown address") |
|
|
raise BaseException("unknown address") |
|
|
|
|
|
try: |
|
|
seed = self.pw_decode( self.seed, password) |
|
|
seed = self.pw_decode( self.seed, password) |
|
|
|
|
|
except: |
|
|
|
|
|
raise BaseException("Invalid password") |
|
|
secexp = self.stretch_key(seed) |
|
|
secexp = self.stretch_key(seed) |
|
|
secexp = ( secexp + self.get_sequence(n,for_change) ) % order |
|
|
secexp = ( secexp + self.get_sequence(n,for_change) ) % order |
|
|
|
|
|
|
|
|