1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 16:08:17 +00:00
trezor-firmware/trezorlib
Jochen Hoenicke 69067c9280 Parse json floats as string
With python-2.7 the float values are sometimes rounded to unacceptable
levels, e.g. stripping the last two digits for values over 100k BTC.
This change parses floats as strings to avoid rounding.

Refactored get_url out of fetch_json to make it easier to add
new tx_api with a different url scheme.
2017-11-28 19:55:31 +01:00
..
qt don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
__init__.py
ckd_public.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
client.py Fix encoding error in trezorlib.client.ProtocolMixin.load_device_by_mnemonic (#153) 2017-11-15 13:33:21 +01:00
coins.py trezorctl: sign_tx command based on tx_sign_tool by mruddy 2017-10-24 00:50:01 +02:00
debuglink.py transports: refactor, split protocol code 2017-08-24 14:29:27 +02:00
ed25519cosi.py trezorlib: move ed25519cosi and ed25519raw from trezor-core 2017-10-04 00:38:53 +02:00
ed25519raw.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
mapping.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
messages_pb2.py trezorctl+client: add support for CoSi commit/sign 2017-10-03 18:43:28 +02:00
protocol_v1.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
protocol_v2.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
tools.py don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
transport_bridge.py transport: add TransportException 2017-09-05 17:16:04 +02:00
transport_hid.py transport_hid: force V1 transport with env var 2017-10-31 13:51:13 +01:00
transport_pipe.py transport: add TransportException 2017-09-05 17:16:04 +02:00
transport_udp.py Fix error when using trezorctl to connect to the trezor-core emulator. (#152) 2017-11-13 22:15:09 +01:00
transport.py transport: add TransportException 2017-09-05 17:16:04 +02:00
tx_api.py Parse json floats as string 2017-11-28 19:55:31 +01:00
types_pb2.py trezorctl+client: add support for CoSi commit/sign 2017-10-03 18:43:28 +02:00