mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
fix #4319
This commit is contained in:
parent
170f41f50d
commit
0b72803dd4
1 changed files with 8 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue