Skip to content
Snippets Groups Projects
Commit ce88ac46 authored by Moul's avatar Moul
Browse files

[fix] missing else condition

parent 5a287fe9
No related tags found
1 merge request!52#51: (E)WIF: add four methods: devine format, allow passing to the f() an hexadecimal string
Pipeline #4383 failed
...@@ -188,6 +188,9 @@ sec: {signkey}""".format(version=version, pubkey=base58_public_key, signkey=base ...@@ -188,6 +188,9 @@ sec: {signkey}""".format(version=version, pubkey=base58_public_key, signkey=base
return SigningKey.from_wif_hex(wif_hex) return SigningKey.from_wif_hex(wif_hex)
elif fi == b"\x02": elif fi == b"\x02":
return SigningKey.from_ewif_hex(wif_hex, password) 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: def from_wif_file(path: str) -> SigningKeyType:
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment