From 6afaa41616db9a19e0611aa11cbc375115cca13a Mon Sep 17 00:00:00 2001 From: ZuluCrypto Date: Sat, 23 Jun 2018 20:54:58 -0600 Subject: [PATCH] stellar - _xdr_read_address now returns string instead of bytes --- trezorlib/stellar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trezorlib/stellar.py b/trezorlib/stellar.py index c2b3d62d37..c37f125a05 100644 --- a/trezorlib/stellar.py +++ b/trezorlib/stellar.py @@ -304,15 +304,15 @@ def _xdr_read_asset(unpacker): def _xdr_read_address(unpacker): - """Reads a stellar address and returns the 32-byte - data representing the address + """Reads a stellar address and returns the string representing the address + This method assumes the encoded address is a public address (starting with G) """ # First 4 bytes are the address type address_type = unpacker.unpack_uint() if address_type != 0: raise ValueError("Unsupported address type") - return unpacker.unpack_fopaque(32) + return address_from_public_key(unpacker.unpack_fopaque(32)) def _crc16_checksum(bytes):