1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-29 09:38:08 +00:00
Commit Graph

267 Commits

Author SHA1 Message Date
Pavol Rusnak
95817eb5d3 adapt to SLIP-0013 2015-03-17 15:11:28 +01:00
Pavol Rusnak
68ef2d2262 implement SignIdentity/SignedIdentity 2015-02-20 18:50:53 +01:00
Pavol Rusnak
870da7aa17 don't try to change 2 things using apply_settings in unit test 2015-02-15 21:19:07 +01:00
Pavol Rusnak
62aff7a22a adapt tests to reflect reorder change 2015-02-11 19:02:35 +01:00
Pavol Rusnak
11e7f21ac3 nicer image in homescreen test 2015-02-05 14:43:27 +01:00
Pavol Rusnak
e42cfe365f use better image for test 2015-02-04 21:26:17 +01:00
Pavol Rusnak
686b8cc4b8 update protobuf, introduce homescreen 2015-02-04 20:53:22 +01:00
Pavol Rusnak
d83926fb13 add failing test to test_op_return 2015-02-04 20:00:04 +01:00
Pavol Rusnak
85d8fa90c8 update protobuf, enable OP_RETURN 2015-02-04 15:47:44 +01:00
Pavol Rusnak
1daf603135 increase range for bip32 caching test 2015-01-26 19:24:31 +01:00
slush0
018a347aca Added test of DerivationCache 2015-01-26 13:08:29 +01:00
Pavol Rusnak
399deeee67 add tests for multisig tx change confirmation 2014-12-20 23:45:40 +01:00
Pavol Rusnak
a51a530dbc cleanup multisig test 2014-12-20 01:23:01 +01:00
slush0
2b664a6b4d Renamed HDPubkeyType to HDNodePathType 2014-12-15 14:37:19 +01:00
Pavol Rusnak
eea4f8be5d fix ApplySettings test 2014-12-13 19:28:33 +01:00
Pavol Rusnak
bc07b044b0 update pb 2014-12-13 19:09:14 +01:00
Pavol Rusnak
63ee124254 test for ApplySettings.use_passphrase 2014-12-13 19:07:43 +01:00
slush0
74a1e18e4c Fix for new multisig API 2014-12-12 22:31:40 +01:00
slush0
bb88abab1e Reflects changes in multisig API: Pass HDNodeType+address_n instead of pubkeys 2014-12-12 22:19:30 +01:00
Pavol Rusnak
1fde1ecc22 add 15-15-multisig to show address test 2014-12-10 19:53:24 +01:00
Pavol Rusnak
c0d0b191d6 test_msg_getaddress_show test now supports multisig 2014-12-10 18:04:26 +01:00
slush0
58f5644402 Merge branch 'master' of github.com:trezor/python-trezor
Conflicts:
	tests/test_multisig.py
2014-12-10 17:59:29 +01:00
slush0
c7431750a2 Added multisig tests for missing pubkey and for 15of15 2014-12-10 17:51:55 +01:00
Pavol Rusnak
705190e147 add test for GetAddress with show flag on 2014-12-10 15:42:38 +01:00
Pavol Rusnak
610547cf32 add button_wait feature for tests 2014-12-10 15:26:18 +01:00
Pavol Rusnak
2ffdff9816 check partial sigs in multisig test 2014-12-07 15:10:16 +01:00
slush0
5c03c72d91 First multisig unit test 2014-12-04 01:30:41 +01:00
Pavol Rusnak
6a27ce2d5c rewrite sign/verify tests to test long messages 2014-11-12 20:26:04 +01:00
Pavol Rusnak
69d2d2ded3 verify test without address does not make sense 2014-11-12 18:37:34 +01:00
Pavol Rusnak
1c6ed65921 add more tests to test_msg_verifymessage 2014-11-07 01:59:44 +01:00
Pavol Rusnak
f790c95df0 add longer strings to ecies tests 2014-11-04 16:19:32 +01:00
Pavol Rusnak
f9e45d8e94 rework EncryptMessage/DecryptMessage 2014-11-04 02:43:21 +01:00
Pavol Rusnak
399d4e10d7 create test_ecies for testing ECIES 2014-11-02 16:16:22 +01:00
Pavol Rusnak
06214d52b4 fix unittests using client.get_public_node method 2014-10-22 00:26:07 +02:00
Pavol Rusnak
4f621b1da0 fix test_recovery_device in test_protection_levels.py 2014-07-31 00:54:41 +02:00
Pavol Rusnak
9ed0604b65 use HidTransport by default again 2014-07-29 18:57:13 +02:00
Pavol Rusnak
a527456db5 add transport for bridge 2014-07-26 16:40:51 +02:00
Pavol Rusnak
a0d73b25fe change logic of recovery 2014-07-10 18:07:38 +02:00
Pavol Rusnak
2d2e31fa50 refactor pprint (add new inspection fields, but comment them) 2014-06-27 17:04:10 +02:00
Pavol Rusnak
7305a77f3e make test_255_outputs more general and rename to test_lots_of_outputs
new test test_lots_of_inputs
2014-06-18 17:14:04 +02:00
Pavol Rusnak
d46bdf2f6e reenable TestDebugLink.test_layout 2014-06-17 16:02:21 +02:00
Pavol Rusnak
260a4322a6 add ClearSession message with unit test 2014-06-17 15:31:10 +02:00
Pavol Rusnak
a3d22dc56e add tests for EncryptMessage/DecryptMessage 2014-06-16 17:16:15 +02:00
Pavol Rusnak
c38f4346f6 add run-separate.sh script 2014-06-11 19:56:19 +02:00
Pavol Rusnak
f17f7d0569 don't use simplesigntx in tests where signtx can be used 2014-06-09 15:33:54 +02:00
Pavol Rusnak
1038a0a3e6 added test for cipherkeyvalue 2014-06-07 19:48:52 +02:00
Pavol Rusnak
0307307dad fix tests to match reality :) 2014-06-04 17:59:25 +02:00
Pavol Rusnak
c06a45c1a8 disable utf tests for sign/verify message for now 2014-06-02 17:53:41 +02:00
Pavol Rusnak
83c93ba3a0 copy test_spend_coinbase to simplesigntx suite as well 2014-05-28 14:54:06 +02:00
slush0
3077b752d4 test_spend_coinbase 2014-05-28 14:39:09 +02:00
Pavol Rusnak
b7f5849ecc fix ButtonRequestType in Ping and GetEntropy 2014-04-28 14:39:05 +02:00
Pavol Rusnak
cff0b5fbf7 add test_signtx to test_protection_levels 2014-04-27 23:06:06 +02:00
Pavol Rusnak
deec6fc2fc simplify test for test_255_outputs using list comprehensions 2014-04-24 16:23:06 +02:00
Pavol Rusnak
615473409a add expected responses to test_msg_signtx test 2014-04-24 15:59:10 +02:00
Pavol Rusnak
3865d22c56 add expected responses to test_msg_signtx.test_one_one_fee unit test 2014-04-23 23:44:56 +02:00
slush0
99af68388d Added unittest test_attack_change_outputs
Removed obsolete tests, enabled test with 255 outputs
2014-04-18 18:57:00 +02:00
Pavol Rusnak
35661161c9 simplify test_255_outputs 2014-04-17 18:33:26 +02:00
Pavol Rusnak
b91bd9d628 use simplesigntx tests for signtx 2014-04-17 16:37:09 +02:00
Pavol Rusnak
c642605ad2 modify simplesigntx to match signtx semantics 2014-04-17 16:30:19 +02:00
Pavol Rusnak
7ae8894214 fix two more unit tests 2014-04-11 15:17:36 +02:00
slush0
2964cc4f9c Temporary disabled unit test 2014-04-10 15:23:36 +02:00
slush0
cbe8b42eed First unit test for streaming tx 2014-04-10 15:23:36 +02:00
slush0
d017ae2adf Fixed RequestTx structure 2014-04-10 15:23:36 +02:00
slush0
e9dbedfd33 Added unit test for PAYTOSCRIPTHASH 2014-04-02 18:54:19 +02:00
Pavol Rusnak
38ed16934f use bitcore for tx api 2014-03-28 21:34:15 +01:00
Pavol Rusnak
860aa753c9 put TXAPIs into one location 2014-03-28 19:51:56 +01:00
Pavol Rusnak
dc0d7fd1d6 initialize version/lock_time in TransactionType 2014-03-27 19:10:24 +01:00
Pavol Rusnak
51b9d4e177 recompile pb, adjust TransactionType constructors 2014-03-25 19:36:46 +01:00
slush0
21f3481c61 Removed button presses for LoadDevice/ResetDevice/RecoveryDevice 2014-03-07 22:50:35 +01:00
slush0
d2a787821b Fixed reset device 2014-03-07 22:39:49 +01:00
Pavol Rusnak
25631221c5 fix test_word_fail in test_msg_recoverydevice 2014-03-07 22:38:16 +01:00
slush0
e0efe950c0 Fixed typos 2014-03-07 21:57:51 +01:00
slush0
40f8c56eb4 Updated tests to do 2014-03-07 21:57:50 +01:00
slush0
bf7fb7928b Numbered mnemonic 2014-03-07 21:57:50 +01:00
Pavol Rusnak
da6ce3acb8 add test for failed word in recovery device 2014-03-07 21:51:01 +01:00
Pavol Rusnak
4fc8868589 rename word variables in DebugLinkState message 2014-03-07 17:38:38 +01:00
Pavol Rusnak
14007cc613 add test_verify_bitcoind to test_msg_verifymessage 2014-03-06 22:02:07 +01:00
Pavol Rusnak
2f498f63e2 don't request confirmation of change addresses 2014-03-06 20:54:50 +01:00
Pavol Rusnak
1e148a7b7b really query for internal entropy before sending external one
use strength to compute number of words
2014-03-05 16:16:45 +01:00
Pavol Rusnak
006812a0b3 add one more test to test_msg_changepin 2014-03-03 00:29:17 +01:00
Pavol Rusnak
50d1537f43 disable layout retrieval in debuglink for now 2014-02-26 14:03:11 +01:00
slush0
8e97281f29 Unit tests of recovery device, apply settings 2014-02-22 02:15:21 +01:00
slush0
2708ccd8ba Test of change pin failure 2014-02-21 22:22:19 +01:00
slush0
39348895f9 Fixed unittest for get_subnode CKD 2014-02-21 22:19:55 +01:00
slush0
e19c8881c0 Removed 'version' from HDNodeType & fixed unit tests 2014-02-21 22:16:13 +01:00
Pavol Rusnak
4ca5b9e5e2 fix get_public_node call in test_msg_getaddress 2014-02-21 21:31:13 +01:00
Pavol Rusnak
729fac2077 add coin param to get_public_node call; new test for getpublickey message 2014-02-21 18:57:21 +01:00
slush0
640d290129 Implements 'with' + set_expected_responses 2014-02-21 07:28:56 +01:00
slush0
9310465946 ChangePin unittest 2014-02-21 04:46:33 +01:00
slush0
2e326bae91 Reworked&updated unittest todo 2014-02-21 04:46:12 +01:00
slush0
c743765a1b Renamed unit tests 2014-02-21 02:35:41 +01:00
slush0
ca14d1a995 Renamed unit tests for better consistency 2014-02-21 02:33:23 +01:00
slush0
1a15cbafb4 Changed unittest's TODO 2014-02-21 02:33:08 +01:00
slush0
f6845089d5 Added utf8 tests to sign/verify messages 2014-02-21 02:32:09 +01:00
slush0
c870b65f22 Renamed unittests for better consistency 2014-02-21 02:31:34 +01:00
slush0
e2aca677c0 WipeDevice test 2014-02-21 01:48:50 +01:00
slush0
56a9a4b384 DeviceLoad using UTF8 mnemonic 2014-02-21 01:48:32 +01:00
slush0
dfeb6de331 Test for Reset Device 2014-02-20 19:15:43 +01:00
Pavol Rusnak
8f7c8799a4 forgot Success 2014-02-17 11:17:44 +01:00
Pavol Rusnak
b63418c8b8 add read_passphrase_protection to debuglink 2014-02-17 02:16:43 +01:00
Pavol Rusnak
74f3502637 don't call load_device in tests setup 2014-02-17 01:54:54 +01:00
Pavol Rusnak
86f1c716a9 use set_expected_responses in test_entropy and test_pings 2014-02-15 21:50:45 +01:00
slush0
5ed9fc8b1a Tests use new "set_expected_responses" 2014-02-15 20:31:34 +01:00
slush0
a0bc12375c Add tests for too long message and for testnet addresses 2014-02-13 18:51:38 +01:00
slush0
a117057dea Slightly refactored mixin structure, added debugging output 2014-02-13 17:20:40 +01:00
slush0
1f893afedd Root path is [], not [0] 2014-02-13 16:50:16 +01:00
slush0
21b3b0ab91 Tests reworked to new TrezorClient API, all tests passes. 2014-02-13 16:47:52 +01:00
slush0
36b0c8095d Fixed tx hash 2014-02-13 16:47:52 +01:00
Pavol Rusnak
59f4dcbaa5 compute root node via bip39 in test_bip32_speed before checking speed 2014-02-11 21:03:17 +01:00
slush0
2e9104f3c2 Reworked unit tests for using sigencode=sigencode_der_canonize in emu/trezor. 2014-02-09 01:08:03 +01:00
slush0
0d25c8974e Added basic testnet tests 2014-02-09 00:13:32 +01:00
slush0
f5606d6824 Edited list of useful tests 2014-02-08 23:15:38 +01:00
slush0
e160afa56d Added signing tests 2014-02-08 23:15:38 +01:00
Pavol Rusnak
33d4fc9f24 autodetect type of device in config 2014-02-08 17:53:32 +01:00
Pavol Rusnak
6ee8d7d949 and test_pings for combinations of input params 2014-02-07 11:31:12 +01:00
Pavol Rusnak
17e28c0e10 add asserts to debuglink tests 2014-02-07 01:47:55 +01:00
Pavol Rusnak
49cecb563d add test_debuglink test 2014-02-06 23:34:13 +01:00
slush0
919c216ac5 First attempt to use ButtonRequestType 2014-02-06 10:44:10 +01:00
slush0
1a71d7634b Comments 2014-02-06 10:43:41 +01:00
Pavol Rusnak
07137cae91 test_entropy does not need load_device 2014-02-06 00:43:56 +01:00
Pavol Rusnak
1716093dbb compile pb once again 2014-02-05 22:15:05 +01:00
slush0
98868b15a6 Added bip32 speed test
Fixed some unit tests
2014-02-04 16:12:52 +01:00
slush0
a437ae1022 Fixed some tests 2014-02-04 00:32:10 +01:00
slush0
c9a348d4a9 Unit tests for signing messages 2014-02-03 16:17:13 +01:00
Pavol Rusnak
7a35872ccf unit test for signing/verifying messages 2014-02-03 15:44:52 +01:00
slush0
845f874aea Added Features.initialized
Implemented wipe_device
2014-02-01 13:39:21 +01:00
Pavol Rusnak
366a7aa07d monkeypatching: text formatting of protobuf messages 2014-01-31 21:21:53 +01:00
slush0
fe0e409e77 Implementation of ChangePin 2014-01-31 19:48:19 +01:00
Pavol Rusnak
e34874b7c1 add entropy message test 2014-01-29 19:09:24 +01:00
Pavol Rusnak
24861a1b58 add check for expected type of message responses 2014-01-27 20:19:12 +01:00
Pavol Rusnak
733a4e979c adapt config.py to new api 2014-01-20 13:21:49 +01:00
slush0
93d7fe5341 Estimate tx size 2014-01-16 23:08:20 +01:00
slush0
91b2b637b4 BIP32 public CKD 2014-01-14 14:29:18 +01:00
slush0
b9925432cd Basic blockchain.info API
SimpleSignTx basic unit test
2014-01-13 04:44:57 +01:00
slush0
c6db133907 Fixed tests 2014-01-12 16:16:07 +01:00
slush0
e542c2dc29 Fixed load_device, including command line 2013-12-30 23:35:20 +01:00
Pavol Rusnak
d3df313442 cleanup protobuf mess 2013-12-16 17:40:25 +01:00
slush0
1f7bfa556a Bootup test tuned also for RPi 2013-10-11 06:19:06 +02:00
slush0
121e189643 Implemented test of pin exponential backoff 2013-10-11 03:51:45 +02:00
slush0
b8ddd0279a Test of PIN cancel function 2013-10-10 17:18:02 +02:00
slush0
42419a129a Profiles for pipe transport / USB hid 2013-10-08 20:34:38 +02:00
slush0
851fa37a0a serial_number -> device_id 2013-10-08 20:34:21 +02:00
slush0
5d32d7f20e Seeds reflect changes in BIP39 wordlist 2013-10-08 20:33:09 +02:00
slush0
c692f60782 Refactored module structure 2013-09-13 05:28:56 +02:00
slush0
4530dc3684 All current tests passed 2013-09-13 05:28:29 +02:00
slush0
d273cdf86b Added unit tests for BTC, tBTC & LTC address generation 2013-09-13 05:27:21 +02:00
slush0
8d100bee0c Implemented ApplySettings, removed SetMaxFeeKb 2013-09-13 00:17:06 +02:00
slush
8e5abb560e Fixed imports 2013-09-01 03:42:26 +02:00
slush
3e39a4c267 test_addresses.py passed (although it uses Electrum algo, not BIP32) 2013-09-01 03:38:03 +02:00
slush
702460d153 Protect call test passed! 2013-09-01 03:35:31 +02:00