1
0

check xkey type when we add the keystore, so that we cover all cases

This commit is contained in:
ThomasV
2017-09-14 14:38:19 +02:00
parent 123c5e3165
commit f0fe84d959
2 changed files with 12 additions and 8 deletions

View File

@@ -869,6 +869,9 @@ def deserialize_xpub(xkey):
def deserialize_xprv(xkey):
return deserialize_xkey(xkey, True)
def xpub_type(x):
return deserialize_xpub(x)[0]
def is_xpub(text):
try: