1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00
trezor-firmware/trezorlib
matejcik 88988172b9 bridge: perform HTTP request in read, not write
This allows us to return early from a `write`, which we need in cases
where we want to perform an operation inbetween `read` and `write` -
namely, callback for ButtonRequest should technically be invoked after
returning ButtonAck but before waiting for device's response.

Of course that doesn't really work. The callback will actually be
invoked _before_ ButtonAck, so there's still the condition that it must
return immediately or the device gets stuck with a black screen.

But doing this allows us to write code *as if* it worked, which lets the
other transports run free and wild, by which I mean, do the Right Thing
2018-10-10 13:15:28 +02:00
..
messages build: remove prebuilt protobuf files 2018-07-09 13:46:18 +02:00
qt Fix Qt5/4 import strategy. 2018-10-04 17:42:59 +02:00
tests tests: fix signature of device.recover in expect-to-fail tests 2018-10-10 13:15:28 +02:00
transport bridge: perform HTTP request in read, not write 2018-10-10 13:15:28 +02:00
__init__.py build: do not import trezorlib in setup.py, parse out __version__ by hand 2018-07-09 13:46:18 +02:00
_ed25519.py style: apply black/isort 2018-08-13 18:22:19 +02:00
btc.py btc: add script_type to get_public_node 2018-09-05 15:21:11 +02:00
cardano.py trezorlib+tools: remove usage of binascii 2018-09-27 16:52:28 +02:00
ckd_public.py style: apply black/isort 2018-08-13 18:22:19 +02:00
client.py style: isort & autopep 2018-10-10 13:15:28 +02:00
coins.py decred: Return tree and version in insight api (#319) 2018-10-10 12:44:54 +02:00
cosi.py cosi: fix bug in signing code, make tests pass 2018-10-02 16:11:20 +02:00
debuglink.py debuglink: allow with-block without expected_responses 2018-10-10 13:15:28 +02:00
device.py style: isort & autopep 2018-10-10 13:15:28 +02:00
ethereum.py tests: fix eip155 test 2018-09-03 14:53:53 +02:00
exceptions.py trezorlib: get rid of TextUIMixin 2018-10-10 13:15:28 +02:00
firmware.py style: uppercase hex constants to conform with black 18.9b0 style 2018-10-01 14:01:33 +02:00
lisk.py style: uppercase hex constants to conform with black 18.9b0 style 2018-10-01 14:01:33 +02:00
log.py style: apply black/isort 2018-08-13 18:22:19 +02:00
mapping.py style: apply black/isort 2018-08-13 18:22:19 +02:00
misc.py style: apply black/isort 2018-08-13 18:22:19 +02:00
nem.py trezorlib+tools: remove usage of binascii 2018-09-27 16:52:28 +02:00
ontology.py add Ontology support (#301) 2018-09-06 15:36:44 +02:00
protobuf.py style: uppercase hex constants to conform with black 18.9b0 style 2018-10-01 14:01:33 +02:00
protocol_v1.py style: apply black/isort 2018-08-13 18:22:19 +02:00
protocol_v2.py style: apply black/isort 2018-08-13 18:22:19 +02:00
ripple.py tests: ripple fix 2018-09-05 10:42:32 +02:00
stellar.py style: uppercase hex constants to conform with black 18.9b0 style 2018-10-01 14:01:33 +02:00
tezos.py added Tezos support (#302) 2018-09-10 16:40:31 +02:00
tools.py debug: improve infrastructure and expected message reporting 2018-10-10 13:15:28 +02:00
tx_api.py decred: Return tree and version in insight api (#319) 2018-10-10 12:44:54 +02:00
ui.py switch to click 7.0 2018-10-10 13:15:28 +02:00