--- a/ledgerwallet/params.py 2021-11-17 20:31:10.488954050 -0300 +++ b/ledgerwallet/params.py 2021-11-17 20:31:30.619477930 -0300 @@ -19,7 +19,6 @@ ) from construct.core import ( byte2int, - iterateints, singleton, stream_read, stream_write, @@ -40,7 +39,7 @@ num_bytes = byte & 0x80 encoded_len = stream_read(stream, num_bytes) num = 0 - for len_byte in iterateints(encoded_len): + for len_byte in encoded_len: num = num << 8 + len_byte return num