1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00
Commit Graph

125 Commits

Author SHA1 Message Date
Tomas Susanka
c827607eec tests: ethereum format_address takes int as an input
fixing 8cdec0652e
2018-03-09 17:42:28 +01:00
matejcik
bd32e1e3b3 tests: set default TREZOR_PATH to the emulator
(so you can run `make test_emu` with a physical Trezor connected)
2018-03-09 15:19:54 +01:00
matejcik
5b9b904198 Makefile: pass TESTOPTS to test runners (and use them in run_tests_device_emu.sh 2018-03-09 15:19:53 +01:00
Pavol Rusnak
611d374bbd
embed: rename TREZOR_STM32/UNIX to TREZOR_MODEL_T/EMU, introduce trezor.utils.model() 2018-03-04 12:59:16 +01:00
Pavol Rusnak
c7c5f55508
src/apps/ethereum: fix layout for values around 1e9 Wei 2018-03-03 23:37:21 +01:00
Tomas Susanka
20456a263a tests/unit: wire missing ubinascii import 2018-02-27 15:24:32 +01:00
Pavol Rusnak
9c7ddba217
src+tests: use flake8 F401 to detect unused imports 2018-02-27 03:05:15 +01:00
Jan Pochyla
323714dc61 src/trezor/wire: disable v2 codec 2018-02-27 02:09:04 +01:00
Pavol Rusnak
be79a8cff4
src+tests: make flake8 happy; explicitly mark E722 ignores (bare excepts) 2018-02-27 00:31:33 +01:00
Jan Pochyla
b88e4e5d5a signing: rely on address_n being always list 2018-02-26 16:13:00 +01:00
Jan Pochyla
fa5dbadc93 src/apps/wallet/sign_tx: cleanup and split scripts/addresses 2018-02-26 16:13:00 +01:00
Tomas Susanka
fb7a315208 tests: note on missing native p2wsh test 2018-02-26 16:13:00 +01:00
Tomas Susanka
b7e4fe02a9 tests: multisig field set to None 2018-02-26 16:13:00 +01:00
Tomas Susanka
e4423567cb signing: multisig addresses (p2sh, p2wsh in p2sh) 2018-02-26 16:12:59 +01:00
Tomas Susanka
8fbf89b7f3 signing: p2sh and witness native addresses 2018-02-26 16:12:59 +01:00
Tomas Susanka
901b0a53a1 tests/signing: threshold test fix
This was failing due to ff32a2e8a6
This fix hardcodes the maxfee_kb variable in the test to allow further modifications
2018-02-12 12:33:17 +01:00
Jan Pochyla
e888b6b967 apps/wallet/sign_tx: fix sighash 2018-02-09 14:16:33 +01:00
Pavol Rusnak
800c2c64c8
tests: fix trezor.config test by changing PYOPT to 1 2018-02-09 13:42:20 +01:00
Pavol Rusnak
b0242d3a3e
tests: fix test_apps.ethereum.layout 2018-02-09 13:36:08 +01:00
Pavol Rusnak
585e9842f8
src/apps+tests: use TODO consistently across whole codebase 2018-02-06 15:23:51 +01:00
Tomas Susanka
a306ce60c2 tests: small note at the end of output with the tests outcome 2018-01-31 15:51:13 +01:00
Pavol Rusnak
739e4f2e45
fix release_num values 2018-01-25 17:46:29 +01:00
Pavol Rusnak
27d9abe883
trezor.config: add public values (readable without unlock)
They are indicated via MSB bit of appid
2018-01-13 16:09:22 +01:00
Pavol Rusnak
0a9d42981d
tests: fix endiannes in test_apps.ethereum.layout 2018-01-13 15:40:04 +01:00
Tomas Susanka
7d0cafecc3 ethereum/singing: layout seperated 2018-01-11 23:08:35 +01:00
Pavol Rusnak
4a7592d470
trezor.crypto: remove vstr usage, refactor mp_obj_new_str_from_vstr into mp_obj_new_bytes and mp_obj_new_str 2018-01-03 21:53:58 +01:00
Pavol Rusnak
fa95f0a037
trezor.crypto: implement chacha20poly1305 aka rfc7539 2018-01-02 18:57:23 +01:00
Pavol Rusnak
d6593e710b
apps.ethereum: implement SignMessage/VerifyMessage 2017-12-23 15:12:31 +01:00
Tomas Susanka
688b568bd9 ethereum: files rename 2017-12-22 17:10:28 +01:00
Tomas Susanka
dc02b322bf ethereum/signing: basic structure, first test passing
first commit based on the trezor-mcu repo
eth tokens added using the common ethereum_tokens-gen.py script
first device test passing
2017-12-22 17:10:28 +01:00
Pavol Rusnak
fe0534658f
tests: no need to include ubinascii for unit tests 2017-12-19 21:57:42 +01:00
Pavol Rusnak
333c0a633a
trezor.crypto: adopt crc32 function 2017-12-19 21:54:22 +01:00
Pavol Rusnak
a9870b9e0e
tests: update how tests are being run 2017-12-19 19:42:56 +01:00
Pavol Rusnak
965bf84cdb
tests: cleanup flake8 warnings 2017-12-16 02:11:26 +01:00
Pavol Rusnak
ea404b53ee
tests: simplify hashlib tests, fix trezor.config test 2017-12-16 01:24:40 +01:00
Pavol Rusnak
5e476b856e
unix: implement sdcard, add unit test 2017-12-15 01:00:00 +01:00
Pavol Rusnak
e8f70ed4af
pin: implement graphics pin timeout 2017-12-14 19:01:41 +01:00
Pavol Rusnak
70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256 2017-12-13 20:47:12 +01:00
Jan Pochyla
58e4a5546f wallet/signing: implement extra data hashing
TODO: zcash test
2017-12-08 17:25:28 +01:00
Pavol Rusnak
626a8885ce
trezor.config: add compaction test 2017-12-08 16:46:13 +01:00
Pavol Rusnak
f88080b904
Merge branch 'pin_fails' 2017-12-07 15:29:47 +01:00
Jan Pochyla
0f2a82e9f1 tests: remove useless import 2017-11-24 15:13:19 +01:00
Tomas Susanka
09f18bb444 wallet: tx weight calculator is used to determine fee 2017-11-24 15:02:37 +01:00
Tomas Susanka
272d64b9e8 wallet: tx weight exact calculator 2017-11-24 15:02:37 +01:00
Jan Pochyla
7a0bfd289b wallet/get_address: support segwit 2017-11-23 17:35:31 +01:00
Tomas Susanka
0e2bcd64e8 tests: o.address fix 2017-11-23 16:34:15 +01:00
Tomas Susanka
d8a884bd87 tests: unit tests signature fixtures for segwit
this fixes broken unit tests introduced by a3d1bdbb862eb2db978115e9e533da81d46a350d
2017-11-23 16:30:11 +01:00
Jan Pochyla
26265ca511 tests: enable signtx segwit tests 2017-11-23 16:30:11 +01:00
Tomas Susanka
aa29667059 common: coins updated 2017-11-23 16:30:11 +01:00
Tomas Susanka
2ebf1cd9f4 trezor/crypto: bech32
taken from https://github.com/sipa/bech32/tree/master/ref/python
2017-11-23 16:30:11 +01:00