electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c35d48459fe70029f95f4f20c861ce7ba0af20ac
parent 13ca0c0d604a3277ef931e9d0a0f26df79c965c6
Author: ThomasV <thomasv@gitorious>
Date:   Wed,  6 Jun 2012 18:32:29 +0200

raise error on compressed key format

Diffstat:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -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