Skip to content

Commit aa0c4a3

Browse files
committed
Convert bytes to str in *_base58check()
1 parent 30330b8 commit aa0c4a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdwallet/hdwallet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,13 +870,13 @@ def public_key_base58check(self) -> str:
870870
return base58.b58encode_check(
871871
_unhexlify(self._cryptocurrency.PUBLIC_KEY_ADDRESS) +
872872
unhexlify(self.public_key())
873-
)
873+
).decode()
874874

875875
def private_key_base58check(self) -> str:
876876
return base58.b58encode_check(
877877
_unhexlify(self._cryptocurrency.PRIVATE_KEY_ADDRESS) +
878878
unhexlify(self.private_key())
879-
)
879+
).decode()
880880

881881
def strength(self) -> Optional[int]:
882882
"""

0 commit comments

Comments
 (0)