git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5846f72
)
fix: missing parameter
author
thomasv
<thomasv@gitorious>
Sun, 3 Mar 2013 10:00:27 +0000 (11:00 +0100)
committer
thomasv
<thomasv@gitorious>
Sun, 3 Mar 2013 10:00:27 +0000 (11:00 +0100)
lib/bitcoin.py
patch
|
blob
|
history
diff --git
a/lib/bitcoin.py
b/lib/bitcoin.py
index
f677ece
..
df7caf5
100644
(file)
--- a/
lib/bitcoin.py
+++ b/
lib/bitcoin.py
@@
-463,7
+463,7
@@
class DeterministicSequence:
def get_private_key_from_stretched_exponent(self, sequence, secexp):
order = generator_secp256k1.order()
- secexp = ( secexp + self.get_sequence(sequence) ) % order
+ secexp = ( secexp + self.get_sequence(sequence, self.master_public_key) ) % order
pk = number_to_string( secexp, generator_secp256k1.order() )
compressed = False
return SecretToASecret( pk, compressed )