base_encode/base_decode: change to saner API
This commit is contained in:
@@ -846,7 +846,7 @@ def parse_URI(uri: str, on_pr: Callable = None, *, loop=None) -> dict:
|
||||
raise InvalidBitcoinURI(f"failed to parse 'exp' field: {repr(e)}") from e
|
||||
if 'sig' in out:
|
||||
try:
|
||||
out['sig'] = bh2u(bitcoin.base_decode(out['sig'], None, base=58))
|
||||
out['sig'] = bh2u(bitcoin.base_decode(out['sig'], base=58))
|
||||
except Exception as e:
|
||||
raise InvalidBitcoinURI(f"failed to parse 'sig' field: {repr(e)}") from e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user