1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
Commit Graph

1252 Commits

Author SHA1 Message Date
Tomas Susanka
0631a0a5b1 tests/device/nem: transfer multiple mosaics 2018-04-04 15:18:21 +02:00
Tomas Susanka
51d9a809bc tests: pytest xfail is used instead of skipping 2018-04-04 13:18:22 +02:00
ZuluCrypto
7eef1df6b0
stellar - added some unit tests 2018-04-03 19:50:38 -06:00
ZuluCrypto
1d722f838a
add Stellar support 2018-04-03 19:50:22 -06:00
ZuluCrypto
0902aefd62
update generated protobuf files with Stellar changes 2018-04-03 19:49:56 -06:00
ZuluCrypto
b03d93c182
pb2py - add support for INT64 2018-04-03 19:47:54 -06:00
matejcik
a4306a00fa tools: add deserialize_tx.py to decode contents of hex-encoded signed BTC transaction.
This code will probably come in handy if/when we implement a microwallet.
2018-04-03 19:24:31 +02:00
matejcik
020b298020 tests/device: autodetect Trezor version and skip the appropriate tests automatically 2018-04-03 18:56:18 +02:00
Pavol Rusnak
12c58ce3cc transport: inject info about udev rules into io/os exception 2018-04-03 18:27:38 +02:00
Tomas Susanka
7c08800cb9 tests/device/nem: test files seperated; swiping for t2 2018-04-03 14:16:49 +02:00
Tomas Susanka
6935c0ee7d tests/device/nem: importance transfer test 2018-03-29 12:43:54 +02:00
Tomas Susanka
5ce254c535 tests/device/nem: aggregate modification test 2018-03-29 11:46:29 +02:00
Tomas Susanka
326056b968 tests/device/nem: mosaic supply change test; const fixes 2018-03-29 10:52:18 +02:00
Tomas Susanka
48cb8d0216 tests/device/nem: mosaic creation levy test 2018-03-29 10:41:49 +02:00
Tomas Susanka
3248b47e5b tests/device/nem: mosaic creation properties test 2018-03-29 10:41:49 +02:00
Tomas Susanka
0e108a662f tests/device/nem: mosaic_creation basic test 2018-03-29 10:41:49 +02:00
Tomas Susanka
ac51c73365 tests/device/nem: provision_namespace test 2018-03-29 10:41:49 +02:00
matejcik
e79026cb4b trezorlib: fix client ctors for transport arg
This restores the API before PR #241, and makes sure that ctor signature doesn't
depend on mixin order.
(Mixins will be going away shortly anyway.)
2018-03-28 15:57:50 +02:00
Roman Zeyde
bd3d014dd4 Allow specifying 'state' at ProtocolMixin c-tor 2018-03-28 14:31:20 +02:00
Tomas Susanka
5d0b5632b3 nem: missing return fix 2018-03-27 16:41:13 +02:00
Tomas Susanka
c4dc6e2c93 tests/device/nem: constants used 2018-03-27 16:06:49 +02:00
Jan Pochyla
8d296ed4c1 tests: add T2 RecoveryDevice test 2018-03-22 15:28:04 +01:00
Tomas Susanka
e435175d79 tests/device: nem encrypted payload doesn't ask for confirmation 2018-03-21 15:16:09 +01:00
Tomas Susanka
333343224b tests/device: typos in nem tests 2018-03-21 15:16:09 +01:00
matejcik
e4a2946398 nem: fill out address_n properly for nem_sign_tx 2018-03-21 14:56:27 +01:00
Tomas Susanka
93dbdb14c1 tests/device: nem encrypted payload 2018-03-21 13:29:23 +01:00
Jan Pochyla
71dd003637 tests: add T2 ResetDevice test 2018-03-20 16:47:11 +01:00
Jan Pochyla
3e65761395 debuglink: add new fields 2018-03-20 16:47:11 +01:00
matejcik
4b59d9191c flake8: fix complaints in new code.
One of these days I'm going to automate this check.
2018-03-20 13:29:33 +01:00
matejcik
7e1d962799 trezorlib: sign_tx only downloads non-segwit transactions.
This should achieve the same goal as PR #193.
In addition, this refactor removes usage of `_extend_` methods
and the unnecessary `_fill_missing` calls.
2018-03-20 13:10:08 +01:00
matejcik
afb3e04c24 trezorlib/protobuf.py: return BytesType from wire as bytes, not bytearray.
This makes more sense, because bytes are immutable and callers have no business
mutating structures from the wire anyway.

Incidentally this should fix issue #236, where rlp library would treat
bytes and bytearrays differently and produce invalid structures in our usecase.

Also very minor nitpicks and code cleanup for neater typing.
2018-03-20 13:00:36 +01:00
matejcik
f87d931ce7 trezorlib: factor out NEM to a separate module 2018-03-20 12:39:23 +01:00
Tomas Susanka
a5e3d50fb0 tests/device: nem bytes assert 2018-03-19 14:52:50 +01:00
Saleem Rashid
4ec8b38d4a pb2py: Use logging module instead of print 2018-03-19 13:48:55 +01:00
Saleem Rashid
d32cbe3466 pb2py: Use generators instead of lists 2018-03-19 13:48:55 +01:00
matejcik
0ad0035aad Merge branch 'saleemrashid-pb2py-refactor' into upstream 2018-03-16 16:14:20 +01:00
Jochen Hoenicke
88b789e8ae trezorctl: fix bug in sign_tx. (#237)
Set address to None, if user didn't specify address.  Otherwise trezorctl
would send an empty string as address instead of not including it.
2018-03-16 07:00:00 +01:00
matejcik
6efe4e4418 trezorlib/messages: regenerate messages with new pb2py
drop `from future import`
in __init__.py, import just the name, not *
2018-03-15 19:55:57 +01:00
matejcik
61a2ab4303 pb2py: keep imports sorted 2018-03-15 19:55:26 +01:00
matejcik
e7a01b827b build_protobuf: fix paths for protoc 2018-03-15 19:55:06 +01:00
matejcik
2375a8f516 fix merge conflicts with updated python-trezor 2018-03-15 19:28:34 +01:00
Pavol Rusnak
35aadfd32f
update protobuf 2018-03-12 16:21:45 +01:00
Pavol Rusnak
a0dd3ee502
trezorctl: add passphrase_source handling to apply_settings 2018-03-12 15:25:52 +01:00
Pavol Rusnak
3ac96f5b00
update protobuf 2018-03-12 15:10:17 +01:00
Roman Zeyde
ab5e4eee34 tests: add test_msg_getecdhsessionkey.py (#233) 2018-03-11 22:51:14 +01:00
matejcik
6b51228090 use binascii.hexlify instead of bytearray.hex (which doesn't exist in python < 3.5) 2018-03-09 14:38:04 +01:00
matejcik
5edcea9ba6
transport: fix all_transports when required modules are missing (#232)
This lets the library work without libusb or hidapi (`--disable-libusb`, `--disable-hidapi`).
2018-03-09 10:58:24 +01:00
Tomas Susanka
89eac8f157 tests/device: more Bitcoin Gold tests
including segwit and multisig
updates https://github.com/trezor/trezor-core/issues/147
2018-03-08 14:35:56 +01:00
Tomas Susanka
869af4498b tests/device: Bitcoin Gold tests 2018-03-07 16:43:01 +01:00
Pavol Rusnak
683f383e90
tests: fix test_msg_getpublickey_curve.py (don't try public derivation for ed25519) 2018-03-07 15:46:09 +01:00