Commit ce88ac46 authored by Moul's avatar Moul

[fix] missing else condition

parent 5a287fe9
Pipeline #4383 failed with stages
in 3 minutes and 36 seconds
......@@ -188,6 +188,9 @@ sec: {signkey}""".format(version=version, pubkey=base58_public_key, signkey=base
return SigningKey.from_wif_hex(wif_hex)
elif fi == b"\x02":
return SigningKey.from_ewif_hex(wif_hex, password)
else:
raise Exception("Error: Bad format: not WIF nor EWIF")
def from_wif_file(path: str) -> SigningKeyType:
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment