mirror of
https://github.com/romanz/amodem.git
synced 2026-03-30 23:57:54 +08:00
trezor.client: fix string<>bytes error
This commit is contained in:
@@ -173,7 +173,7 @@ def _identity_to_string(identity):
|
|||||||
|
|
||||||
def _get_address(identity):
|
def _get_address(identity):
|
||||||
index = struct.pack('<L', identity.index)
|
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)
|
log.debug('address string: %r', addr)
|
||||||
digest = formats.hashfunc(addr).digest()
|
digest = formats.hashfunc(addr).digest()
|
||||||
s = io.BytesIO(bytearray(digest))
|
s = io.BytesIO(bytearray(digest))
|
||||||
|
|||||||
Reference in New Issue
Block a user