A working subset of #1788 #1875

Merged
g1itch merged 5 commits from compat-short into v0.6 2021-11-11 15:12:34 +01:00
Showing only changes of commit b3577a09e5 - Show all commits

View File

@ -20,6 +20,8 @@ def encodeBase58(num, alphabet=ALPHABET):
num: The number to encode num: The number to encode
alphabet: The alphabet to use for encoding alphabet: The alphabet to use for encoding
""" """
if num < 0:
return None
if num == 0: if num == 0:
return alphabet[0] return alphabet[0]
arr = [] arr = []