traise error on compressed key format - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c35d48459fe70029f95f4f20c861ce7ba0af20ac DIR parent 13ca0c0d604a3277ef931e9d0a0f26df79c965c6 HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 6 Jun 2012 18:32:29 +0200 raise error on compressed key format Diffstat: M lib/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -332,7 +332,8 @@ class Wallet: if address in self.all_addresses(): raise BaseException('Address already in wallet') b = ASecretToSecret( key ) - if not b: return False + if not b: + raise BaseException('Unsupported key format') secexp = int( b.encode('hex'), 16) private_key = ecdsa.SigningKey.from_secret_exponent( secexp, curve=SECP256k1 ) # sanity check