SomberNight 7 years ago
parent
commit
0b72803dd4
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 10
      lib/keystore.py

10
lib/keystore.py

@ -677,12 +677,18 @@ def load_keystore(storage, name):
return k
def is_old_mpk(mpk):
def is_old_mpk(mpk: str) -> bool:
try:
int(mpk, 16)
except:
return False
return len(mpk) == 128
if len(mpk) != 128:
return False
try:
ecc.ECPubkey(bfh('04' + mpk))
except:
return False
return True
def is_address_list(text):

Loading…
Cancel
Save