From 438bc94dcedcede8aa657d0b162a888f78f7ea01 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 16 Aug 2015 11:25:23 +0200 Subject: [PATCH] fix #1399 --- lib/account.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/account.py b/lib/account.py index 705052b5b..bae7fc129 100644 --- a/lib/account.py +++ b/lib/account.py @@ -211,9 +211,9 @@ class OldAccount(Account): @classmethod def get_pubkey_from_mpk(self, mpk, for_change, n): z = self.get_sequence(mpk, for_change, n) - master_public_key = ecdsa.VerifyingKey.from_string( mpk, curve = SECP256k1 ) - pubkey_point = master_public_key.pubkey.point + z*curve.generator - public_key2 = ecdsa.VerifyingKey.from_public_point( pubkey_point, curve = SECP256k1 ) + master_public_key = ecdsa.VerifyingKey.from_string(mpk, curve = SECP256k1) + pubkey_point = master_public_key.pubkey.point + z*SECP256k1.generator + public_key2 = ecdsa.VerifyingKey.from_public_point(pubkey_point, curve = SECP256k1) return '04' + public_key2.to_string().encode('hex') def derive_pubkeys(self, for_change, n):