1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-08 14:31:06 +00:00
Commit Graph

7656 Commits

Author SHA1 Message Date
Pavol Rusnak
67d699ca3f
defs: add Tezos SimpleStaking wallet 2018-11-16 01:21:44 +01:00
Pavol Rusnak
b1725e7264
fsm: return xpub for multisig 2018-11-15 13:43:08 +01:00
Pavol Rusnak
b1566e9d57
src/apps/wallet/get_public_key: return xpub for multisig 2018-11-15 13:41:19 +01:00
Pavol Rusnak
da3223d703
tests: change flags for test_msg_signtx_capricoin.py 2018-11-14 17:36:19 +01:00
Tibor Arpas
be58549fd9
src/apps/wallet/sign_tx: handle timestamp field 2018-11-14 17:33:03 +01:00
Pavol Rusnak
1d43322d21
src/trezor/messages: regenerate 2018-11-14 17:31:17 +01:00
Pavol Rusnak
b3e668db8b
embed/extmod/modtrezorconfig: small refactor to storage 2018-11-14 16:25:36 +01:00
Pavol Rusnak
113a557f17
embed/trezorhal+unix: small refactor to flash.c 2018-11-14 15:12:19 +01:00
Pavol Rusnak
8d7dd590ff
defs: change trc contact 2018-11-14 11:17:28 +01:00
Pavol Rusnak
d2f1a4db11
changelog: update 2018-11-13 16:52:34 +01:00
Pavol Rusnak
ca24156eb5
changelog: update 2018-11-13 16:51:26 +01:00
Pavol Rusnak
9cd261c81a
layout: parse and show OMNI transactions 2018-11-13 16:50:10 +01:00
Pavol Rusnak
10a284f6ee
src/apps/wallet/sign_tx: make check for OMNI more strict 2018-11-13 16:33:14 +01:00
Pavol Rusnak
4693c071b4
src/apps/wallet/sign_tx: implement OMNI parsing in OP_RETURN layout 2018-11-13 14:29:40 +01:00
strmci
252f946f40 Add a test case for segwit inputs/outputs with very high amounts (#337)
Add a test case for segwit inputs/outputs with very high amount, fixes #332
2018-11-12 16:27:56 +01:00
Pavol Rusnak
0f2ec16609
vendor: update trezor-common
bump fw version to 1.7.2
2018-11-12 14:17:25 +01:00
Pavol Rusnak
342c3646e1
vendor: update trezor-common 2018-11-12 14:14:25 +01:00
Pavol Rusnak
8c53177626
defs: remove eos, trx erc20 tokens 2018-11-12 14:12:26 +01:00
Pavol Rusnak
3600af0c8e
defs: add eos, trx 2018-11-12 14:03:10 +01:00
Pavol Rusnak
9f02376c70
support: replace soon with version where applicable 2018-11-12 14:03:10 +01:00
matejcik
780236ca77 build: add typing_extensions requirement 2018-11-12 12:55:28 +01:00
matejcik
5bb7dc39b8 transport: consolidate USB-based transports
remove Trezor 2 support from HID transport, which never worked

use ProtocolV1 explicitly everywhere, as V2 doesn't exist in practice

move USB IDs and UDEV warning string to a common place

fix a bug where HID would return a list instead of bytes
2018-11-12 12:22:32 +01:00
matejcik
d3534a15c9 transport: fix typing after autoflake treatment
autoflake will remove all unused imports when `make style` is invoked,
but can't recognize typing names that are only used in comments.

this fixes it.
2018-11-12 12:22:32 +01:00
matejcik
bfb56451e8 bridge: support bridge 2.0.25+
which can do read/write separately and supports debuglink
2018-11-12 12:22:32 +01:00
matejcik
ed473e2e42 trezorlib: add licence headers where missing 2018-11-12 12:22:32 +01:00
matejcik
93d84539bd transport: fit log messages to lines 2018-11-12 12:22:32 +01:00
matejcik
85b85c67b3 trezorlib: reentrant session handling
This fixes the breakage introduced by transport reshuffles.
It's still not great and I'd love to see context manager based sessions.
But it's good enough for now.
2018-11-12 12:22:32 +01:00
matejcik
daf97afb37 bridge: refactor after merging old changes 2018-11-12 12:22:32 +01:00
matejcik
aac7726824 trezorlib: transport/protocol reshuffle
This commit breaks session handling (which matters with Bridge) and
regresses Bridge to an older code state. Both of these issues will be
rectified in subsequent commits.

Explanation of this big API reshuffle follows:

* protocols are moved to trezorlib.transport, and to a single common file.
* there is a cleaner definition of Transport and Protocol API (see below)
* fully valid mypy type hinting
* session handle counters and open handle counters mostly went away. Transports
  and Protocols are meant to be "raw" APIs; TrezorClient will implement
  context-handler-based sessions, session tracking, etc.

I'm calling this a "reshuffle" because it involved very small number of
code changes. Most of it is moving things around where they sit better.

The API changes are as follows.

Transport is now a thing that can:
* open and close sessions
* read and write protobuf messages
* enumerate and find devices

Some transports (all except bridge) are technically bytes-based and need
a separate protocol implementation (because we have two existing protocols,
although only the first one is actually used). Hence a protocol superclass.

Protocol is a thing that *also* can:
* open and close sessions
* read and write protobuf messages
For that, it requires a `handle`.

Handle is a physical layer for a protocol. It can:
* open and close some sort of device connection
  (this is distinct from session! Connection is a channel over which you can
  send data. Session is a logical arrangement on top of that; you can have
  multiple sessions on a single connection.)
* read and write 64-byte chunks of data

With that, we introduce ProtocolBasedTransport, which simply delegates
the appropriate Transport functionality to respective Protocol methods.

hid and webusb transports are ProtocolBasedTransport-s that provide separate
device handles. HidHandle and WebUsbHandle existed before, but the distinction
of functionality between a Transport and its Handle was unclear. Some methods
were moved and now the handles implement the Handle API, while the transports
provide the enumeration parts of the Transport API, as well as glue between
the respective Protocols and Handles.

udp transport is also a ProtocolBasedTransport, but it acts as its own handle.
(That might be changed. For now, I went with the pre-existing structure.)

In addition, session_begin/end is renamed to begin/end_session to keep
consistent verb_noun naming.
2018-11-12 12:22:26 +01:00
Tomas Susanka
d83ef07d57 paths: typo, style 2018-11-12 12:21:40 +01:00
Tomas Susanka
2acf0d10bd TEMPORARY: run tests against tsusanka/paths python-trezor branch 2018-11-12 12:10:32 +01:00
Tomas Susanka
8cf1ee5e62 paths: temporarily disable GetPublicKey paths checks
Until trezor/trezor.js#73 is fixed
2018-11-12 12:10:32 +01:00
Tomas Susanka
31f987e988 coins: validate derivation paths
Based on SLIP-44 ids and other checks. See docs/coins/README for info.
2018-11-12 12:10:32 +01:00
matejcik
491f1c1ad2 tools/support.py: set --ignore-tokens as default when running the checks 2018-11-12 12:08:33 +01:00
matejcik
0fd94f6bee tools/support.py: fix bug when token collides with coin 2018-11-12 12:08:33 +01:00
Vladimir Volek
ab25381646 Update build.md (#408) 2018-11-12 12:04:56 +01:00
Pavol Rusnak
4f153b5fd0
travis: put back ignore-missing 2018-11-11 13:59:48 +01:00
Pavol Rusnak
bea5e32046
add new stuff to support.json 2018-11-11 13:58:28 +01:00
Michael Ira Krufky
eb0c46542b Add Mix support (#234) 2018-11-11 13:54:48 +01:00
WillyTheCat
8757aa5cc0 Added BitCash (#232) 2018-11-11 13:53:57 +01:00
Pavol Rusnak
37a22b045f
defs: fix testnet backend uris 2018-11-09 16:08:24 +01:00
Pavol Rusnak
97655c70e7
add missing support info 2018-11-09 15:36:25 +01:00
Pavol Rusnak
19f1e3f008
defs: remove invalid backend APIs 2018-11-09 15:29:16 +01:00
Harris Brakmić
31ad279a62 Actinium integration (#221) 2018-11-09 15:14:46 +01:00
David
f5924dc694 Add Bitsend (BSD) support (#222) 2018-11-09 15:11:38 +01:00
David
cae5137bf1 Add Megacoin (MEC) support (#223) 2018-11-09 15:11:26 +01:00
David
39c95d6309 Add Bitcloud (BTDX) support (#224) 2018-11-09 15:11:07 +01:00
Jan Pochyla
ce362103ae apps: msg.address_n is always a list 2018-11-09 13:59:10 +01:00
Jan Pochyla
c7651b3c94 tezos: remove import * 2018-11-09 13:49:04 +01:00
Pavol Rusnak
0ff7034e37
embed/extmod/modtrezorconfig: refactor PIN UI wait callback (#398)
This commit accomplishes several goals:

1) it removes any upy dependencies from storage.c/storage.h
2) ui wait callback is set during config_init and storage_init,
   which allows to simplify the code dramatically
2018-11-08 15:55:47 +01:00