1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00
trezor-firmware/trezorlib/tests/device_tests
matejcik db92b13f97 cosi: move things around
ed25519raw is moved back to trezorlib
ed25519cosi is renamed to cosi, and has a couple more functions,
with the expectation that TrezorClient.cosi_* methods will move there.

Also most code shouldn't need ed25519raw for anything, so it might get
renamed to "_ed25519" to indicate that it's a private implementation.

For now, I added a "verify" method to cosi, so that you don't need to
call into ed25519raw.checkvalid. But trezor-core's keyctl is also
using ed25519raw.publickey. I'm not sure if that's worth replicating
in cosi, or whether to just leave it be, so I'm leaving it be for now.

Importantly, new function "sign_with_privkey" does that math thing that
was part of the selftest and is also explicitly listed in keyctl.
(it's called sign_with_privkey because I expect to have a "sign" method
here that calls into Trezor)
2018-05-17 12:53:01 +02:00
..
__init__.py tests: Move to trezorlib.tests 2017-12-19 13:16:22 +01:00
.gitignore tests: Move to trezorlib.tests 2017-12-19 13:16:22 +01:00
common.py tests/device_tests: disable protobuf outputs unless run with -v 2018-05-11 15:29:38 +02:00
conftest.py tests/device_tests: disable protobuf outputs unless run with -v 2018-05-11 15:29:38 +02:00
test_basic.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_bip32_speed.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_cosi.py cosi: move things around 2018-05-17 12:53:01 +02:00
test_debuglink.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_applysettings.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_changepin.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_cipherkeyvalue.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_clearsession.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_ethereum_getaddress.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_ethereum_signmessage.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_ethereum_signtx.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_ethereum_verifymessage.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_getaddress_segwit_native.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_getaddress_segwit.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_getaddress_show.py tests: update imports after tests.support move 2018-05-11 15:29:37 +02:00
test_msg_getaddress.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_getecdhsessionkey.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_getentropy.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_getpublickey_curve.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_getpublickey.py tests: update imports after tests.support move 2018-05-11 15:29:37 +02:00
test_msg_lisk_getaddress.py tests: xfail Lisk tests until trezor-core#90 is merged 2018-04-18 15:46:10 +02:00
test_msg_lisk_getpublickey.py tests: xfail Lisk tests until trezor-core#90 is merged 2018-04-18 15:46:10 +02:00
test_msg_lisk_signmessage.py tests: xfail Lisk tests until trezor-core#90 is merged 2018-04-18 15:46:10 +02:00
test_msg_lisk_signtx.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_lisk_verifymessage.py tests: xfail Lisk tests until trezor-core#90 is merged 2018-04-18 15:46:10 +02:00
test_msg_loaddevice_xprv.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_loaddevice.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_nem_getaddress.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_nem_signtx_mosaics_t2.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_nem_signtx_mosaics.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_nem_signtx_multisig.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_nem_signtx_others.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_nem_signtx_transfers.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_ping.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_recoverydevice_dryrun.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_recoverydevice_t2.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_recoverydevice.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_resetdevice_skipbackup.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_resetdevice_t2.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_resetdevice.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signidentity.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signmessage_segwit_native.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signmessage_segwit.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signmessage.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signtx_bcash.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_signtx_bitcoin_gold.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_signtx_decred.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signtx_segwit_native.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_signtx_segwit.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_signtx_zcash.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_signtx.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_msg_stellar_get_public_key.py tests/stellar: marked as passing on T1 2018-05-09 16:34:51 +02:00
test_msg_stellar_sign_transaction.py tests/stellar: marked as passing on T1 2018-05-09 16:34:51 +02:00
test_msg_verifymessage_segwit_native.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_verifymessage_segwit.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_verifymessage.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_msg_wipedevice.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_multisig_change.py tests: update to use parse_path 2018-05-11 15:29:38 +02:00
test_multisig.py tests: update imports after tests.support move 2018-05-11 15:29:37 +02:00
test_op_return.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_protect_call.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_protection_levels.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00
test_zerosig.py tests/device_tests: remove all star imports 2018-05-11 15:29:38 +02:00