1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-09 15:00:58 +00:00
Commit Graph

7656 Commits

Author SHA1 Message Date
Pavol Rusnak
60b5b7032c
hasher: add HASHER_SAPLING_PREIMAGE 2018-10-16 11:29:45 +02:00
Pavol Rusnak
685f24b454
tests: add test for Zcash Sapling 2018-10-16 10:58:12 +02:00
Pavol Rusnak
c8a053ac64
src/apps/wallet/sign_tx: fix style in last commit 2018-10-15 21:03:06 +02:00
Pavol Rusnak
74d50a2b4e
src/apps/wallet/sign_tx: enable ZIP243 hashing 2018-10-15 20:45:17 +02:00
Pavol Rusnak
e2d405aa0a
src/apps/wallet/sign_tx: update ZIP243 Sapling code 2018-10-15 19:08:43 +02:00
Pavol Rusnak
e16a8fc8c9
src/apps/wallet/sign_tx: refactor Zcash, add WIP ZIP243; use ensure instead of assert where possible 2018-10-15 18:33:39 +02:00
Pavol Rusnak
4f9284d572
firmware: drop version_group_id from coin definition, use externally provided one 2018-10-15 18:07:16 +02:00
Pavol Rusnak
85c7b39e3f
nix: add python.protobuf 2018-10-15 18:06:56 +02:00
Pavol Rusnak
76080a2343
vendor: update trezor-common 2018-10-15 17:59:31 +02:00
Pavol Rusnak
ea0262266d
fix typo 2018-10-15 17:59:13 +02:00
Pavol Rusnak
1ee03bc2eb
vendor: update trezor-common 2018-10-15 17:55:39 +02:00
Pavol Rusnak
681772e8bb
remove version_group_id from coin definitions 2018-10-15 17:55:09 +02:00
Pavol Rusnak
837781eb55
vendor: update trezor-common, use Tx.version_group_id where possible 2018-10-15 17:52:11 +02:00
Pavol Rusnak
95ffa894c8
protob: add version_group_id to SignTx and TxAck 2018-10-15 17:29:43 +02:00
Pavol Rusnak
2742890439
protob: add Decred comments 2018-10-15 17:25:17 +02:00
Milan Rossa
b2327c37b7 firmware: log exceptions in debug mode (no silent unhandled exceptions) 2018-10-15 13:37:37 +02:00
Pavol Rusnak
f07dfe9344
src/trezor/crypto/base58: refactor hash function names 2018-10-14 16:11:00 +02:00
Leandro Reinaux
33e9dac2fe
src/apps/common: add smartcash curve 2018-10-14 16:11:00 +02:00
Pavol Rusnak
ef464e1596
nix: add autoflake 2018-10-12 16:50:09 +02:00
matejcik
3f92683bc6 firmware: update forgotten comment 2018-10-12 16:05:50 +02:00
matejcik
e1efd493fd trezorctl: updated firmware update flow
We can now locally verify firmware signatures and hashes. We also
recognize min_firmware_version, so this resolves #308

This also helps with #273, as trezorlib is now mostly usable for signing
firmware images.
2018-10-12 15:58:55 +02:00
matejcik
3e7b26b454 exceptions: smarter, nicer exceptions from Failures 2018-10-12 15:49:17 +02:00
Pavol Rusnak
610233280d
build: unify Dockerfiles 2018-10-12 14:13:39 +02:00
Pavol Rusnak
555a650eb8
build: remove unnecessary Dockerfile.emulator 2018-10-12 14:03:23 +02:00
Pavol Rusnak
04cdb68ed2
build: unify build-docker.sh and build-docker.gcc_source.sh 2018-10-12 13:57:27 +02:00
matejcik
eb2b58e1f4 cosi: tests for new verify_m_of_n method 2018-10-12 12:58:49 +02:00
matejcik
ba365b5486 cosi: replace slow djb implementation of ed25519 with an optimized one
from https://github.com/pyca/ed25519

This makes the calculations several orders of magnitude faster, which
allows us to run the CoSi test in Travis. It also doesn't stop firmware
update for several seconds while we validate the CoSi signatures.

It's still essentially the same insecure implementation, fallible to all
the same timing attacks, and it shouldn't be used for anything except
validating public signatures of public data. But now it also takes about
as much time as it should on modern hardware.
2018-10-12 12:58:44 +02:00
Pavol Rusnak
3d5fa7a2f6
tests: refactor test_msg_resetdevice_skipbackup 2018-10-11 17:26:20 +02:00
Milan Rossa
fc9bc85ea3
unix: user profiles support for emulator 2018-10-11 16:51:04 +02:00
Milan Rossa
32fe5d20af
unix: emulator debug build options 2018-10-11 16:33:45 +02:00
Pavol Rusnak
84b53e5813
travis: remove TREZOR_MODEL=1 target for now 2018-10-11 16:14:00 +02:00
Pavol Rusnak
16d9d58ee1
tests: add test in resetdevice for combination of display_random and skip_backup 2018-10-11 15:29:30 +02:00
Pavol Rusnak
13fa7d22b9
src/apps/management/reset_device: don't show internal entropy when skip_backup is set 2018-10-11 15:27:42 +02:00
Pavol Rusnak
9730471a73
reset: wording 2018-10-11 15:27:03 +02:00
Pavol Rusnak
96cf9e9065
reset: don't show internal entropy when skip_backup is set 2018-10-11 15:24:40 +02:00
matejcik
b0e879b30e docker: update build scripts and instructions to fix Docker emulator (#419)
fixes #417
2018-10-11 14:58:22 +02:00
Pavol Rusnak
addbdd8937
src/apps/common: refactor address_n_to_str into apps.common.layout 2018-10-10 17:58:26 +02:00
Pavol Rusnak
cc25069064
src/apps/debug: don't erase storage on debug in emulator 2018-10-10 16:07:57 +02:00
Pavol Rusnak
9ddb1b9280
src/apps/common: update coininfo.py.mako 2018-10-10 14:45:59 +02:00
Pavol Rusnak
7ab36d57ab
docker: quick fix of Dockerfiles 2018-10-10 14:19:59 +02:00
Pavol Rusnak
a1ba9db744
tests: re-enable Decred test for T2 2018-10-10 13:44:36 +02:00
Pavol Rusnak
4a26870fcc
src/trezor/crypto: refactor {blake256,sha256}_ripemd160_digest to trezor.crypto.scripts 2018-10-10 13:40:55 +02:00
Matheus Degiovani
688e885903 decred: Add sign message tests (#318) 2018-10-10 13:35:31 +02:00
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
matejcik
ca7cbad1cf trezorctl: variable referenced before assignment (fixes #313) 2018-10-10 13:15:28 +02:00
matejcik
2b02af1126 trezorctl: bad call to click.echo (fixes #304) 2018-10-10 13:15:28 +02:00
matejcik
2d7c74c535 switch to click 7.0 2018-10-10 13:15:28 +02:00
matejcik
8618f44272 tests: fix signature of device.recover in expect-to-fail tests 2018-10-10 13:15:28 +02:00
matejcik
1d3fa77ab6 debuglink: allow with-block without expected_responses 2018-10-10 13:15:28 +02:00
matejcik
ffff11a462 style: isort & autopep 2018-10-10 13:15:28 +02:00