1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00
Commit Graph

259 Commits

Author SHA1 Message Date
Milan Rossa
9b2167a138
core: asan config 2019-06-27 19:09:55 +02:00
Tomas Susanka
390bef00ca core/slip39: catch exception also when finding out threshold in recovery 2019-06-27 15:42:09 +02:00
Tomas Susanka
6c50b155de core: remove unused variables in Shamir recovery 2019-06-27 14:10:33 +02:00
Tomas Susanka
c205acd3e1 core/slip39: do not populate MnemonicError's message; do not throw exceptions with mnemonic inside the message 2019-06-27 14:00:45 +02:00
Tomas Susanka
4f8022c5cd core/slip39: remove partial persistance in Shamir recovery 2019-06-27 13:47:02 +02:00
Milan Rossa
22f562e275
core: add status to main_exit function 2019-06-26 22:13:21 +02:00
Milan Rossa
9f681a363e
core: git ignore coverage outputs 2019-06-26 22:10:05 +02:00
Roman Zeyde
f3e3ebe1d8 core: unify exception handling at wallet.sign_tx (#255) 2019-06-26 16:53:26 +02:00
Roman Zeyde
99e21f2a96 core: keep BIP143 hashes as bytes (#258)
AFAIU, there is no need to convert them to bytearray.
2019-06-26 16:52:31 +02:00
Tomas Susanka
bc3a4a69be core: style
I'm sorry about this, I'll add a git hook for pre-push I promise.
2019-06-26 13:20:41 +02:00
Tomas Susanka
8f3e648497 core/slip39: remove note on T9 keyboard 2019-06-26 13:18:47 +02:00
Ján Hrnko
0a70f8da1b core/emu: use #!/usr/bin/env in shebang (#263) 2019-06-26 12:16:41 +02:00
Tomas Susanka
582910732a core/slip39: one more typo 2019-06-26 11:40:33 +02:00
Tomas Susanka
2f0a5adac6 core/slip39: hopefully final version of slip39 texts 2019-06-26 11:11:50 +02:00
Tomas Susanka
4fbac3ec63 style 2019-06-26 10:23:32 +02:00
Tomas Susanka
5394d5a5a5 core/slip39: add texts from copy and add success screen in recovery 2019-06-26 06:59:45 +02:00
Jan Pochyla
487cc19750 core/recovery_device: fix dry_run 2019-06-25 18:25:32 +02:00
Tomas Susanka
240440550a style 2019-06-25 16:56:35 +02:00
Tomas Susanka
4124ad3ccd core/slip39: return ProcessError when mnemonic processing fails 2019-06-25 16:49:46 +02:00
Jan Pochyla
a4039f9459 core/management: fix word check, add icons to checklist 2019-06-25 15:47:19 +02:00
Tomas Susanka
10e5ec6135 core/slip39: generate and store slip39 identifier during reset 2019-06-25 14:43:20 +02:00
Jan Pochyla
07de336586 core/pin: do not allow empty pin 2019-06-25 13:23:48 +02:00
Jan Pochyla
4d0fe4d064 core/management: fix various reset/backup/recovery ui bugs 2019-06-25 13:23:48 +02:00
Tomas Susanka
989fb1491f core/slip39: suggest word sooner when a single one is left 2019-06-25 10:35:19 +02:00
Pavol Rusnak
1ec5d091fd core/usb: call wait_random just before returning the data 2019-06-24 19:13:12 +02:00
Tomas Susanka
0daf2bf6b6 core/reset device: remove unnecessary check 2019-06-24 15:25:21 +02:00
Jan Pochyla
03f23fe940 core/mnemonic: cancel homescreen before seed progress animation
If we close the default layout before the animation starts, the workflow manager starts it again after the current workflow ends (and no layout is running).
2019-06-24 13:12:12 +02:00
Tomas Susanka
10f15a6952 core: bump version to 2.1.2 2019-06-24 09:13:18 +02:00
Tomas Susanka
80f8f7900d core: add slip39 support to reset and recovery device 2019-06-23 21:33:58 +02:00
Tomas Susanka
49d6a35249 core: add slip39 keyboard 2019-06-23 21:33:58 +02:00
Roman Zeyde
6fb76f95d1 core: ensure correct pubkeyhash/witprog length in scripts.py (#254) 2019-06-22 16:22:00 +02:00
Pavol Rusnak
e3e2811f7a
core: throw exception classes instead of instances where possible 2019-06-22 02:14:02 +02:00
Pavol Rusnak
312224b7a3
core: fix style 2019-06-22 00:18:31 +02:00
Pavol Rusnak
e432c37df0
core/sdcard: read/write now don't return bool, but rather throw an Exception instead 2019-06-21 22:51:53 +02:00
Pavol Rusnak
4938fb5461
core/tests: rename trezor.io.sdcard test, don't use assert in tests directly 2019-06-20 17:22:44 +02:00
Pavol Rusnak
c8bc21a393
core: bump SD card capacity to 64MB in emulator 2019-06-20 11:52:50 +02:00
Pavol Rusnak
2d8e11e827
core/tests: expand slip39 test_error_location 2019-06-18 23:50:03 +02:00
Andrew Kozlik
84d3723ee9 slip39: Add RS1024 error locator function. 2019-06-18 18:34:29 +02:00
Pavol Rusnak
54d348228f
all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
Tomas Susanka
906013a6d7 ui/mnemonic: small refactor in input's edit 2019-06-13 21:18:23 +02:00
Tomas Susanka
40d55dfe8b ui: remove dead code in mnemonic.py 2019-06-13 17:58:15 +02:00
Jan Pochyla
5bc6bc4635 core: fix request_passphrase notification screen 2019-06-12 16:08:59 +02:00
Jan Pochyla
416226648c core: rotate touch coordinates by default 2019-06-12 15:30:05 +02:00
Roman Zeyde
a4c0645622 core: return exception details in debug mode (#238) 2019-06-11 17:07:18 +02:00
Pavol Rusnak
c1f5432904
Merge pull request #239 from trezor/andrewkozlik/hmac_drbg
Add HMAC DRBG and use it to generate random delays
2019-06-11 16:59:50 +02:00
Roman Zeyde
40bf2c5d2e core: ensure pubkeyhash/scripthash have the correct length (#220) 2019-06-11 14:34:58 +02:00
Andrew Kozlik
c2bdd1cf32 core/common: Change delay_random() to wait_random(). 2019-06-11 11:41:40 +02:00
Andrew Kozlik
f677a0f0db core: Use PRNG when generating random delays. 2019-06-11 11:41:40 +02:00
Andrew Kozlik
1d9e125fd4 crypto/rfc6979: Use the new HMAC DRBG implementation in rfc6979.c. Remove code duplication between rfc6979.c and ecdsa.c. 2019-06-11 11:41:40 +02:00
Andrew Kozlik
0e277dfcb0 core/slip39: Fixed a bug when generating shares with group_threshold = 1. 2019-06-11 11:26:29 +02:00
Pavol Rusnak
0b96b48a8c
core/tools: rename toif_convert to toif_convert.py 2019-06-09 19:17:53 +02:00
Pavol Rusnak
b89134bf3f
core/tools: fix style in toif_convert 2019-06-09 19:04:10 +02:00
Pavol Rusnak
9cb9653c27
core: refactor png2toi/toi2png tools into one toif_convert usable as a library
unify filename extensions
2019-06-09 18:07:07 +02:00
Tomas Susanka
677562d571
Merge pull request #216 from trezor/tsusanka/iss212-monere-tests
ci: download monero tests binary in docker
2019-06-06 10:57:24 +02:00
matejcik
835d5df175
core: reset i2c bus when detected busy
(cherry picked from commit bf79384845)
2019-06-05 14:18:24 +02:00
Pavol Rusnak
e6bb2697c8
core: update ChangeLog 2019-06-05 14:17:38 +02:00
Tomas Susanka
83a5ae3def ci: download monero tests binary in docker
closes #212
2019-06-03 19:44:41 +02:00
Pavol Rusnak
1ee5068128
core/cbor: fix string conversion to work with bytearrays 2019-06-01 11:49:27 +02:00
Andrew Kozlik
31506d81e9
core/cbor: move CBOR from cardano to common
- add support for text strings and boolean values
- add support negative integers and decoding maps
- fix decoding of short strings
- encode maps canonically
- add unit tests for decoding
- sort maps lexicographically by encoded key
2019-06-01 11:38:52 +02:00
Pavol Rusnak
751715dc15
common/defs: add to support.json, regenerate 2019-06-01 08:57:06 +02:00
Roman Zeyde
b538eb3375
core/secp256k1_zkp: refactor API into a Context class
In order to prevent frequent memory allocations, the user can create a single
Context object and re-use it between subsequent cryptographic operations.
2019-05-31 17:29:49 +02:00
Tomas Susanka
6a27328801
xmr: get_address - pagination, integrated address (#201)
xmr: get_address - pagination, integrated address
2019-05-31 15:06:46 +02:00
Tomas Susanka
412efcd35e tests: remove progress bar from curl
It makes CI logs nicer.
2019-05-31 14:44:45 +02:00
Milan Rossa
779ff86214
core: redesign multiprofile support, add profile verbosity 2019-05-31 13:32:49 +02:00
Dusan Klinec
16317f1814
xmr: get_address - pagination, integrated address
- pagination added to show_address
- integrated address supported
- QR code fixed (prefix with monero: as GUI does)
2019-05-31 13:18:11 +02:00
Jan Pochyla
961499fdcf core: fix uppercase ripple address in qr code
Fixes #191
2019-05-28 15:57:04 +02:00
Jan Pochyla
0b03794fee core/tests: disable fading, improve runners 2019-05-28 13:12:46 +02:00
Jan Pochyla
36534325f0 core: revamp the UI subsystem 2019-05-28 13:12:46 +02:00
Jan Pochyla
2f4c123466 core: fix gitignore for older git 2019-05-28 11:17:07 +02:00
Jan Pochyla
09da577fd9 core: use const in trezor.crypto.slip39 2019-05-28 11:17:07 +02:00
Pavol Rusnak
b89d1db0e4
core: update build instructions 2019-05-28 10:24:49 +02:00
Pavol Rusnak
917f5c6534
core: remove bashisms from emu.sh 2019-05-28 10:19:18 +02:00
Pavol Rusnak
a3717c7b6c
core/slip39: use condensed wordlist 2019-05-27 19:39:41 +02:00
Pavol Rusnak
11aac67c82
core: fix last commit 2019-05-27 17:45:06 +02:00
Pavol Rusnak
ae749eedee
core/secp256k1_zkp: don't allocate static buffer 2019-05-27 17:21:14 +02:00
matejcik
6864758f2b docs: fix typo in testing.md 2019-05-27 17:01:49 +02:00
matejcik
32fbdb2abd docs: update testing documentation 2019-05-27 16:38:42 +02:00
matejcik
a0d7a6a667 python: more consistent handling of markers in device_tests
also better behavior when no Trezor device is present
2019-05-27 16:38:35 +02:00
Pavol Rusnak
f7053d96fe
all: remove extraneous whitespace 2019-05-26 22:20:14 +02:00
Pavol Rusnak
daf0d77923
core: remove raspi makefile target
Raspi build is still available when ENV variable is set,
but no need to bloat the Makefile/SConscript file
2019-05-26 21:57:47 +02:00
Pavol Rusnak
07ce935725
core/eos: revert new pubkey format 2019-05-26 11:48:49 +02:00
Pavol Rusnak
5a2c67ccae
core: let's have pytest.ini back 2019-05-25 13:53:58 +02:00
Pavol Rusnak
23202e2479
core: remove pytest.ini because it hides setup.cfg from root 2019-05-25 13:37:34 +02:00
Pavol Rusnak
0765842e7f
root: move pytest markers to setup.cfg 2019-05-25 13:06:28 +02:00
Pavol Rusnak
684862a7f5
common: more TRX cleanup 2019-05-25 12:48:04 +02:00
Roman Zeyde
8a179437b1
core: add custom markers to pytest.ini
Following https://docs.pytest.org/en/latest/mark.html#registering-marks
2019-05-25 12:09:45 +02:00
Tomas Susanka
cc5c8ae7e0
common+python: Revert Ontology support
This reverts commit 402e72e36e.
This reverts commit 21326d3a41.
This reverts commit 18739987ee.
2019-05-25 11:59:35 +02:00
Tomas Susanka
562206d220
tests: remove xfail 2019-05-25 11:59:35 +02:00
Roman Zeyde
d190d906de core/secp256k1-zkp: use ARM assembly for field operations (#176)
Update to latest secp256k1-zkp to allow building on Cortex-M4 devices (https://github.com/ElementsProject/secp256k1-zkp/pull/56).
2019-05-25 11:42:13 +02:00
Jan Pochyla
9586358e44 core: log memory info if TREZOR_LOG_MEMORY env is set 2019-05-24 16:28:11 +02:00
Pavol Rusnak
9460ac425a
core/eos: fix pubkey unit test 2019-05-24 16:18:07 +02:00
Pavol Rusnak
8c1f5c88f7
core: fix style 2019-05-24 16:09:12 +02:00
Jan Pochyla
c2f5174b43
core: optimize memory usage in signing 2019-05-24 16:04:20 +02:00
Pavol Rusnak
a6e51434f2
core/eos: use new pubkey format 2019-05-24 16:01:28 +02:00
Pavol Rusnak
414b33dbfb
core/eos: reduce code duplication 2019-05-24 15:52:57 +02:00
Pavol Rusnak
1583ea62f9
core: serialize signature in EosSignedTx message 2019-05-24 12:49:19 +02:00
Tomas Susanka
279b40bdb7 build: templates
Fixes tests broken by 9e05517872
2019-05-24 11:49:03 +02:00
Pavol Rusnak
5f1586e049
core: regenerate templates 2019-05-23 20:24:44 +02:00
Pavol Rusnak
164336cb56
core: add equality function to mako template too 2019-05-22 22:46:22 +02:00
Pavol Rusnak
0568379f8d
core/tests: disable over_fee_threshold test 2019-05-22 19:29:49 +02:00