Commit Graph

267 Commits (1193b0ee8591b7864fae981622a55f9a9a47ca8c)

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