Jan Pochyla
22abb6d07a
tests: auto-detect pytest config
2018-07-10 13:05:15 +02:00
Yura Pakhuchiy
7684db4702
Add Groestlcoin transaction signing tests
2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
0f53fd16ec
Add tests for Groestlcoin addresses
2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
c0458f71e8
Add Groestl512 hash tests
...
Added some test vectors from refrence implementation:
www.groestl.info/Groestl.zip
2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
4237adb7cc
Fix tests broken by API changes
2018-07-09 21:30:10 +02:00
Pavol Rusnak
2ee57da5d8
src/apps/wallet/sign_tx: fix last commit, add bip115 test
2018-07-04 18:08:05 +02:00
Pavol Rusnak
9f90ca21a9
src/apps/wallet/sign_tx: fix bip115 code in last commit
2018-07-02 14:29:58 +02:00
idimon4uk
3b345f3c76
src/apps/wallet/sign_tx: add Zencash support ( #252 )
2018-07-02 14:16:26 +02:00
Pavol Rusnak
5c62180011
tests: fix coins test (there are few collissions in address_types, but for less significant coins)
2018-06-22 14:43:22 +02:00
Jan Pochyla
86461d0d6b
tests: remove codec_v2 test
2018-06-21 15:58:00 +02:00
Pavol Rusnak
97bb26b7f3
embed/extmod/modtrezorcrypto: use kwargs for Blake2b/Blake2s
2018-06-19 18:15:58 +02:00
Ilan
270bf73212
Update RSKIP-60 checksum separator ( #244 )
2018-06-16 13:08:17 +02:00
Pavol Rusnak
a6d316db25
style: make flake8 happy
2018-06-13 19:04:40 +02:00
Ilan
0c13a43518
src/apps/ethereum: implement RSKIP-60 checksum in get_address
2018-06-13 18:59:46 +02:00
Pavol Rusnak
604083ee25
tests: add test_apps.ethereum.get_address
2018-06-12 17:46:31 +02:00
Pavol Rusnak
285c845e9b
src+test: fix flake8 warning
2018-06-12 17:41:49 +02:00
Jan Pochyla
b13dba115a
nem: fix unit tests
2018-06-07 13:18:45 +02:00
Tomas Susanka
3422474811
nem: mosaics definitions are generated from trezor-common
2018-06-06 17:24:07 +02:00
Tomas Susanka
616d117648
nem: mosaics are checked against definition and user is asked appropriately
2018-06-06 17:24:07 +02:00
Tomas Susanka
a45ac4ad4b
nem: refactored to have a common message as an argument
2018-06-06 17:24:07 +02:00
Tomas Susanka
8de3cd7cac
nem: refactored to directories
2018-06-06 17:24:07 +02:00
Tomas Susanka
32681972f1
nem: aggregate modification relative_change is int
2018-06-06 17:24:07 +02:00
Tomas Susanka
b80a8022d0
nem: multisig
2018-06-06 17:24:07 +02:00
Tomas Susanka
d54d33df3a
nem: big refactoring of serialization
...
protocol classes are now used; reflected in unit tests
2018-06-06 17:24:07 +02:00
Tomas Susanka
6aef64d367
nem: compute address from pubkey
2018-06-06 17:24:07 +02:00
Tomas Susanka
4cd87d3a01
nem: mosaics canonicalization
2018-06-06 17:24:07 +02:00
Tomas Susanka
d07deecc7e
nem: mosaics moved to seperate file
2018-06-06 17:24:07 +02:00
Tomas Susanka
10a52d8688
nem: multisig (basic functions, unit tests)
2018-06-06 17:24:06 +02:00
Tomas Susanka
48c6686dca
nem: aggregate modification
2018-06-06 17:24:06 +02:00
Tomas Susanka
2e6587ec6c
nem: transaction create mosaic supply change
2018-06-06 17:24:06 +02:00
Tomas Susanka
a6c406abea
nem: transaction mosaic creation test
2018-06-06 17:24:06 +02:00
Tomas Susanka
2696968894
nem: transaction mosaic creation
2018-06-06 17:24:06 +02:00
Tomas Susanka
8e7ee89b02
nem: transaction serialization
2018-06-06 17:24:06 +02:00
Tomas Susanka
5dd3d1e7e5
nem: provision namespaces
2018-06-06 17:24:06 +02:00
Tomas Susanka
4827ff3a03
nem: create transfer (including mosaics)
2018-06-06 17:24:06 +02:00
Tomas Susanka
b5cc678caa
nem: encrypt
2018-06-06 17:24:06 +02:00
Tomas Susanka
a18b398747
nem: unit test for address
2018-06-06 17:24:06 +02:00
Pavol Rusnak
7f36185ab3
tests: fix segwit tests using preimage_hash
2018-06-05 16:54:36 +02:00
Pavol Rusnak
307f7baecf
fix flake8 issues
2018-05-28 15:23:37 +02:00
Tomas Susanka
bb57000449
src/trezor/crypto: add trezor.crypto.base32
2018-05-25 16:09:05 +02:00
matejcik
7b06a802bb
tests: drop nonexistent fields from TxOutputBinType
2018-05-24 15:41:07 +02:00
Pavol Rusnak
90975f6b6e
embed/extmod/modtrezorcrypto: add support to variable outlen for Blake2{b,s}
2018-05-22 19:44:52 +02:00
Pavol Rusnak
577cb361dc
src/trezor/crypto: add cashaddr support
2018-05-22 17:47:54 +02:00
matejcik
003d77b209
testing: configure pytest.ini and update testing documentation
...
as per https://github.com/trezor/python-trezor/pull/263
2018-05-22 17:28:52 +02:00
Tomas Susanka
55de110ee9
eth: unknown token changed to (None, None..)
2018-05-10 14:51:08 +02:00
Tomas Susanka
2d0d360944
eth: unknown token transfer is recognized and displayed as unknown
...
updates #198
2018-05-10 14:19:23 +02:00
Jan Pochyla
3b67cb6bea
tests: fix loop.select usage
2018-04-13 15:00:50 +02:00
Jan Pochyla
e223173b4e
loop: wait -> spawn, select -> wait
...
select was a bit confusing name, as we always block on only one
interface.
2018-04-13 14:57:04 +02:00
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
Tomas Susanka
dc6701af90
wallet/signing: native P2WPKH, P2WPKH in P2SH, scripts
2017-11-23 16:30:11 +01:00
Tomas Susanka
b7b46b6980
wallet/signing: amount is checked during witness signature
...
with test
2017-11-23 16:30:11 +01:00
Tomas Susanka
da4bc2dc8b
wallet/signing: P2WPKH in P2SH address generation based on BIP-49, PAYTOP2SHWITNESS output type
2017-11-23 16:30:11 +01:00
Tomas Susanka
b7f01baf99
wallet/signing: refactoring
2017-11-23 16:30:11 +01:00
Tomas Susanka
e63d0adc23
wallet/signing: segwit first test passing
2017-11-23 16:30:11 +01:00
Tomas Susanka
bcef961059
wallet/signing: bip143 transactions hashing
2017-11-23 16:30:09 +01:00
Jan Pochyla
40a9ac2e29
tests: fix trezor.config test
2017-11-10 15:18:43 +01:00
Jan Pochyla
88b1222ad0
tests: ignore new segwit tests
2017-11-06 18:36:05 +01:00
Jan Pochyla
8342aa2e7d
tests: enable test_msg_resetdevice.py
2017-10-31 17:07:13 +01:00
Jan Pochyla
936487a523
tests: run v1 protocol tests
2017-10-31 13:55:51 +01:00
Jan Pochyla
f4ebe368b9
tests: enable load_device test
2017-10-31 13:55:36 +01:00
Jan Pochyla
ce3dc61e63
tests: ignore test_cosi.py
2017-10-30 23:48:09 +01:00
Jan Pochyla
f093ca23d5
tests: ignore specific tests, testpy -> test_emu
2017-10-30 18:52:10 +01:00
Pavol Rusnak
02fb442fd1
examples: add desc to 2048 source
2017-10-06 01:38:02 +02:00
Pavol Rusnak
ed0d18132d
examples: add 2048 game example
2017-10-06 01:33:28 +02:00
Pavol Rusnak
1d9b907342
tests: clear display on production test start
2017-10-05 08:27:41 +02:00
Pavol Rusnak
737dc0159f
tests: implement otp read/write in production test
2017-09-27 13:32:55 +02:00
Jan Pochyla
53d191bdf1
tests/production_tests: use native modules directly
2017-09-20 14:47:07 +02:00
Jan Pochyla
0aa8cbfe51
tests/production_tests: in touch test, wait for TOUCH_START first
2017-09-20 14:05:03 +02:00
Jan Pochyla
49cc4651c2
bunch of api cleanups
2017-09-19 23:47:35 +02:00
Pavol Rusnak
81deb66f29
tests: add production test
2017-09-08 02:16:16 +02:00
Jan Pochyla
aae151a0ab
tests: skip multisig marker
2017-08-15 18:14:14 +02:00
Jan Pochyla
6814931457
tests: fix permissions
2017-08-15 18:14:14 +02:00
Jan Pochyla
520de105a6
tests: fix wire tests, remove msg
2017-08-15 18:14:14 +02:00
Jan Pochyla
3562ffdc54
wire: pass Context to apps
2017-08-15 18:14:14 +02:00
Jan Pochyla
552444c856
remove src/lib
2017-08-15 18:14:14 +02:00
Jan Pochyla
1f90e781d5
wire: simplify, use async codecs
2017-08-15 18:14:14 +02:00
Jan Pochyla
56ba61cedf
fix remaining micropython paths
2017-08-07 16:56:41 +02:00
Jan Pochyla
403e45aacf
tests: fix path to unix micropython
2017-08-07 12:41:00 +02:00
Pavol Rusnak
3a35a5a5be
tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo
2017-07-28 19:45:58 +02:00
Pavol Rusnak
fe5b5c1940
tests: update to pytest, regenerate protobuf
2017-07-28 18:58:31 +02:00
Pavol Rusnak
ce6dca8ed5
trezor.io: rework for new structure
2017-06-20 14:14:47 +02:00
Pavol Rusnak
acb68dc429
trezor.config: rework for new structure
2017-06-20 13:30:02 +02:00
Pavol Rusnak
fe672fbd09
travis: install trezor from pypi
2017-06-19 00:28:48 +02:00
Pavol Rusnak
0ee67371b8
tests: run tests in python3
2017-06-19 00:12:46 +02:00
Pavol Rusnak
3fcbf7179b
remove trezor.debug usage
2017-05-15 19:12:12 +02:00
Pavol Rusnak
5b56c805ab
tests: fix run_tests_python_trezor.sh
2017-05-09 12:36:08 +02:00
Pavol Rusnak
16c7284e98
apps.common: introduce cache module instead of caching in global variables
2017-05-09 01:10:45 +02:00
Pavol Rusnak
5e410a3b59
apps.wallet: implement GetEntropy
2017-05-08 22:11:58 +02:00
Pavol Rusnak
11154c1ab5
tests: mute both emulator and test in run_tests_python_trezor which were bloating the log extensively
2017-05-08 18:11:03 +02:00
Pavol Rusnak
9e42a45b10
crypto: update trezor-crypto, fix crypto.bip32 test
2017-05-08 17:48:22 +02:00
Pavol Rusnak
87f20bac29
tests: update tests, try running functional tests in travis
2017-04-25 16:29:02 +02:00
Pavol Rusnak
a1d04f8b7b
tests: disable trezor.msg test for now
2017-04-21 18:23:39 +02:00
Pavol Rusnak
a7e17f07ee
tests: finish sign_identity workflow, update run_tests_python_trezor.sh to reflect current state
2017-04-16 22:21:21 +02:00
Pavol Rusnak
0a7997f798
modtrezorcrypto: add cosi cosigning scheme to ed25519 class
2017-04-03 22:28:54 +02:00
Pavol Rusnak
eef147d810
modtrezorcrypto: add crypto.rfc6979 class
2017-04-03 21:29:52 +02:00
Pavol Rusnak
9c3c19959b
modtrezorcrypto: add Blake2b
2017-02-28 18:47:27 +01:00
Jan Pochyla
53c327727f
tests: enable test_msg_reset_device.py
2017-01-24 14:14:03 +01:00
Jan Pochyla
96ead03e03
apps: fix for change_pin and debug
2016-12-17 13:20:57 +01:00
Pavol Rusnak
0beb7b19e7
tests: add second vector to trezor.crypto.bip32 tests
2016-12-12 14:59:30 +01:00
Pavol Rusnak
403889f8dd
tests: add test for trezor.crypto.bip32.derive_path
2016-12-12 13:38:28 +01:00
Jan Pochyla
b297083e5d
tests: fix python-trezor tests
2016-12-08 16:31:25 +01:00
Jan Pochyla
e0dfc2ef03
apps: reflect the wire api changes
2016-12-08 16:19:09 +01:00
Jan Pochyla
d56dc88861
wire: refactoring
...
- prefer importing modules instead of module members
- session_id is always first argument
- prefer much shorter names, don't expect users to import module members
- shuffle around session-specific code
- reduce allocations
2016-12-08 16:19:09 +01:00
Jan Pochyla
1b27bb480d
trezor.wire: rename modules
2016-12-08 16:19:09 +01:00
Pavol Rusnak
918150a3f1
tests: make testpy tries running selected tests from python-trezor
...
apps.ethereum: fix get address call
2016-11-24 17:16:40 +01:00
Jan Pochyla
1cd0609ac2
apps.common.signtx: fix test
2016-11-23 15:06:39 +01:00
Jan Pochyla
33f833f40a
config: fix test
2016-11-23 15:06:39 +01:00
Jan Pochyla
be7ee61ddd
config: always use bytes() for default value
2016-11-23 15:06:39 +01:00
Pavol Rusnak
c6ea71901d
trezor.config: use norcow
2016-11-21 19:56:23 +01:00
Pavol Rusnak
ddd46f6f53
trezor.crypto: add RLP
2016-11-18 18:13:24 +01:00
Pavol Rusnak
b09f0eaf4e
tests: add test for apps.common.coins
2016-11-15 11:57:18 +01:00
Pavol Rusnak
f7fe5344b8
tests: fix test_apps.common.signtx
2016-11-15 11:22:07 +01:00
Jan Pochyla
31e3aaa23b
signtx: add UI instructions, SigningError type
2016-11-10 15:37:55 +01:00
Jan Pochyla
25ab4dd2ea
signtx: clean up test
2016-11-09 12:36:44 +01:00
Pavol Rusnak
b0fa0466dc
trezor.crypto.curve: implement verify_recover function for ecdsa
2016-11-08 23:52:04 +01:00
Pavol Rusnak
c8eb2bf17b
trezor.crypto: prepend recid to ecdsa signatures
2016-11-08 23:10:31 +01:00
Pavol Rusnak
a31dba225e
test: add test for trezor.config.wipe
2016-11-08 21:34:52 +01:00
Pavol Rusnak
32e699efdb
trezor.crypto.der: convert -> encode
...
small cleanup to new unit test
2016-11-08 20:25:55 +01:00
Pavol Rusnak
b3bc71c481
tests: extract micropython binary to variable in run_tests.sh
2016-11-08 19:05:20 +01:00
Jan Pochyla
d2c71b3a58
signtx: add first test, make it all work
2016-11-08 18:50:13 +01:00
Pavol Rusnak
9fb6e328a0
trezor.crypto: add der module
2016-11-08 16:59:08 +01:00
Pavol Rusnak
8d1109986c
trezor.crypto: curve.nist256p1 and curve.secp256k1 now sign/verify 256-bit digests, not arbitrary length messages
2016-11-08 15:38:45 +01:00
Pavol Rusnak
161bb90e03
tests: add tests for trezor.msg and trezor.ui.display
2016-11-06 17:39:30 +01:00
Pavol Rusnak
33b5436dcc
tests: move to /tests to avoid freezing
2016-11-06 17:04:25 +01:00