1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-02 03:20:59 +00:00
Commit Graph

8063 Commits

Author SHA1 Message Date
Ilan
047e3e7f21 Update RSK Network shortcut (#243) 2018-11-30 13:34:37 +01:00
Tomas Susanka
d5fb2a477a eth/verify: path is not validated; improve invalid signature handling
Ethereum's verify_function takes an actual address as an argument not a
derivation path. So any path validation does not make any sense.

Also, if the verify_recover function raises an exception, it gets
propogated as a DataError (additional fix for #422).
2018-11-30 13:32:13 +01:00
matejcik
71528b5260 coins_details: add a bunch of overrides for network names, regenerate 2018-11-29 16:42:12 +01:00
matejcik
2f198f0b46 coins_details: hide testnet and deprecated tokens 2018-11-29 16:39:31 +01:00
matejcik
5f59b5100b support: release tokens for 2.0.10 2018-11-29 15:59:59 +01:00
matejcik
91923097de support: change handling of "soon" coins
"soon" coins that are not tokens will not be included in build
2018-11-29 15:59:18 +01:00
matejcik
7eb479c4f3 support: regenerate duplicates list 2018-11-29 15:46:26 +01:00
matejcik
e8d38b9090 defs: allow USDT ERC20 token (collides with USDT OMNI token) 2018-11-29 15:43:49 +01:00
matejcik
b02390f560 tokens: new tokens checkout 2018-11-29 15:43:30 +01:00
matejcik
e51aa9b3cd tools: new rules for ERC20 duplicates
We now allow duplicates if they're their own testnets, or if they're
deprecated. Also some checks are smarter.
2018-11-29 15:42:49 +01:00
martin
dd02e2bf83 Update ZEC support
Actually after sapling, ZEC is supported only by newer firmware versions
2018-11-28 12:37:55 +01:00
Tomas Susanka
47790634ae
Merge pull request #426 from ph4r05/pr/xmr-payment-id-fix
xmr: payment ID computation fix
2018-11-28 09:37:47 +01:00
Dusan Klinec
f810230e71
xmr: payment ID computation fix
- typo in tail differentiating tag caused invalid short payment id encryption. was 0x8B, should have been 0x8D
- 69b646494b/src/device/device_default.cpp (L39)
- 69b646494b/src/device/device_default.cpp (L287)
2018-11-27 22:21:40 +01:00
David
638f401172 Add wallet link for Bitcore BTX 2018-11-27 17:23:53 +01:00
Jan Pochyla
dd5eba8da9 ui: reduce flicker in buttons, text, and pin dialog 2018-11-27 14:49:59 +01:00
Jan Pochyla
faa665a80b unix: fix SDL issues in MacOS Mojave 2018-11-27 14:49:59 +01:00
Tibor Arpas
ea4610afd2 Fixing make test_emu in some environments. 2018-11-27 14:42:49 +01:00
matejcik
b6c44e6985 changelog: update for 0.11.0 2018-11-26 18:42:02 +01:00
matejcik
db1a5adee7 device_tests: style 2018-11-26 17:02:00 +01:00
Tomas Susanka
0d01298f71 tests/eth: add invalid signature test for verify 2018-11-26 16:30:34 +01:00
Tomas Susanka
8213fee15b eth: replace fw error with data error in verify function
closes #422
2018-11-26 16:28:40 +01:00
matejcik
ab461548ce tools: update encfs_aes_getpass, add version check 2018-11-26 16:07:22 +01:00
matejcik
4982fd1cf5 client: wrap clear_session in a session
because it's a different kind of session...
2018-11-26 16:06:56 +01:00
matejcik
c7c5653231 trezorlib: bump version (not releasing yet though) 2018-11-26 16:02:19 +01:00
matejcik
1ded85c746 tests/unit_tests: update test_transport 2018-11-26 15:58:19 +01:00
matejcik
c95489513e tools/encfs_aes_getpass: blackify 2018-11-26 15:30:42 +01:00
matejcik
36a81fd9e7 trezorlib: update CallException to match the old one
which is now TrezorFailure
2018-11-26 15:30:42 +01:00
matejcik
1f2db3666b ui: smarter ClickUI prompts only once
This also fixes #331 by moving the PIN matrix from trezorctl into the UI
class
2018-11-26 15:30:42 +01:00
matejcik
ecf62ac43c trezorctl: allow beta firmware 2018-11-26 15:30:42 +01:00
matejcik
eb50d54ec2 device: add reasonable defaults for reset/recovery 2018-11-26 15:30:42 +01:00
matejcik
40eaa1fa36 transport/hid: reload serial when closing
because device.wipe() causes the device to change serial, which breaks
the connection unnecessarily.
2018-11-26 15:30:42 +01:00
matejcik
f3a13f50e0 transport/hid: check serial number when opening device
This fixes the problem where the user disconnects a device, connects a
different one, and the library doesn't notice because opening the same
HID path worked fine. (see https://github.com/spesmilo/electrum/issues/4806 )
2018-11-26 15:30:42 +01:00
matejcik
082adfd15d transport: derive TransportException from TrezorException 2018-11-26 15:30:42 +01:00
matejcik
69ef1f0acd transport: cleaner Transport list instantiation
Previously if an import of a dependent module (usb1, hid) failed, import
of the whole transport module would fail. This was resolved by catching
ImportErrors in the all_transports method.

This had two drawbacks:
- if something other than ImportError happened - e.g., libusb would
raise OSError if it couldn't find libusb.so - all_transports would crash
anyway
- at the same time, if a legitimately needed dependency
(typing_extensions) was missing, this would be masked by the ImportError
handling.

Instead, we unconditionally import the modules, and inside each one,
wrap dependencies in a try-except.

As an added benefit, it is now possible to disable a transport just by
setting SomeTransport.ENABLED = False
2018-11-26 15:30:42 +01:00
matejcik
f04458d6ea client: allow canceling pin/passphrase entry 2018-11-26 15:30:42 +01:00
matejcik
11e56a7e1b client: clean up constants 2018-11-26 15:30:42 +01:00
matejcik
3dda5e6534 client: proto -> messages 2018-11-26 15:30:42 +01:00
matejcik
4f9bdff564 client: simplify MovedTo now that we only need it to raise an error
this also removes most of client's imports, which will FINALLY let us
import client where it is needed without circular dependencies
2018-11-26 15:30:42 +01:00
matejcik
ef46bd38ef client: finish the move away from mixins
move all methods that are still relevant to TrezorClient (originally
BaseClient)

modify ProtocolMixin to be a compatibility shim

modify BaseClient to be a compatibility shim with a proxy to original
actual TrezorClient - this prevents early failures in Electrum for long
enough to show an error message
2018-11-26 15:30:42 +01:00
matejcik
f3f521b028 client: convert generic classname-based dispatch to a static list
Only a limited number of messages should be dispatched to handlers
that can be inserted anywhere in the protocol flow. Having a fixed list
of interjecting handlers makes this clearer and prevents hard-to-find
bugs.
2018-11-26 15:30:42 +01:00
matejcik
c3112fd83d embed/trezorhal: only poll CTPM when touch is detected
Because CTPM dislikes being polled when no touches are seen, keeps
resetting, and maybe freezes once in a while. This is very likely a fix
for #334.

Before, we would simply read the touch registers on every loop. Now we
first check whether the interrupt line is down, which indicates that the
CTPM has data to tell us.

Tracking the `touching` flag is necessary, as sometimes we don't poll
frequently enough to catch the TOUCH_END event before interrupt line
goes up again.
The `last_packet` handling miiight not be necessary - AFAICT, the CTPM
has some sort of buffer and always returns TOUCH_START at first and
TOUCH_END at last. Still, better safe than sorry.
2018-11-26 14:47:06 +01:00
Tomas Susanka
72bc784f7f Revert "TEMPORARY: run tests against tsusanka/paths python-trezor branch"
This reverts commit 2acf0d10bd.
2018-11-21 17:21:28 +01:00
Tomas Susanka
786bccfa34 tests/lisk: all all all seed 2018-11-21 17:08:18 +01:00
Tomas Susanka
29d3a21d84 tests/eth: all all all seed 2018-11-21 17:08:18 +01:00
Tomas Susanka
f5af12c043 paths: compatibility for derivation paths checks 2018-11-21 17:08:18 +01:00
matejcik
a1265b48d1 support: add ETH and ETC as supported in webwallet
also use this information when generating coins_details.json
2018-11-20 18:00:38 +01:00
matejcik
88fa3c7381 cointool: fix uniformity check
also uniformize misc.json
2018-11-20 17:59:15 +01:00
matejcik
56fbd816c9 improve wallet lists
- move bitcoin wallet links from coins_details.override.json to a separate
wallets.json file
- drop NanoWallet links from nem nem_mosaics.json, auto-add them in
coins_details.py instead
- move misc wallet links to misc.json
- clean out override file
- change wallet format in coins_details.json:
  - they're now list instead of dict, so that we can specify ordering
- add Trezor Beta wallet link to ETH/ETC and their tokens
- somewhat stricter checking of trezor.io wallet data
2018-11-20 17:27:12 +01:00
martin
beb8bb6dec increase version for DGB
Increase version for DGB to 1.6.3 and 2.0.7. Motivation is to make it work seamlessly in current webwallet. Lower versions would need some workarounds.
2018-11-20 14:18:46 +01:00
Jan Pochyla
1782b0273c
Merge pull request #341 from trezor/tsusanka/paths
Bip 44 path checks
2018-11-19 15:54:11 +01:00