mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
raise error on compressed key format
This commit is contained in:
parent
13ca0c0d60
commit
c35d48459f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue