trezor.client: fix string<>bytes error

This commit is contained in:
Roman Zeyde
2015-08-18 16:46:44 +03:00
parent b71c1e132c
commit 396967433a

View File

@@ -173,7 +173,7 @@ def _identity_to_string(identity):
def _get_address(identity):
index = struct.pack('<L', identity.index)
addr = index + _identity_to_string(identity)
addr = index + _identity_to_string(identity).encode('ascii')
log.debug('address string: %r', addr)
digest = formats.hashfunc(addr).digest()
s = io.BytesIO(bytearray(digest))