diff --git a/lib/wallet.py b/lib/wallet.py index b2ecbd5dc..abeb54452 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -934,10 +934,8 @@ class Wallet: private_keys = self.get_private_key(address, password) for sec in private_keys: - compressed = is_compressed(sec) - pkey = regenerate_key(sec) - pubkey = GetPubKey(pkey.pubkey, compressed) - keypairs[ pubkey.encode('hex') ] = sec + pubkey = public_key_from_private_key(sec) + keypairs[ pubkey ] = sec tx.sign(keypairs)