Commit Graph

481 Commits (3096a5caa6c37f0e6d5067214829e5b988bc35e7)

Author SHA1 Message Date
Tomas Susanka 9251f73d89 tests: move persistence tests to its own folder
5 years ago
Tomas Susanka c3d13f41a4 tests/click: fix test_recovery
5 years ago
Adrian Nagy 384275ac73
core/tezos: support the new protocol update (005-BABYLON)
5 years ago
matejcik 9b827baca0 tests: improve Shamir persistence test
5 years ago
matejcik 5488270bc3 core: improve emulator wrapper
5 years ago
matejcik f22f4d920e tests: ensure Shamir persistence test runs only for core
5 years ago
matejcik bc1696b947 tests: add scaffold for Shamir persistence testing
5 years ago
matejcik 7591e98897 tests: rename background.py to device_handler.py
5 years ago
matejcik c9f4341949 tests: make background handler killable
5 years ago
matejcik c970ad437d tests: improve layout_lines API
5 years ago
matejcik 3f9b0b7f4f tests: improved click tests with BackgroundDeviceHandler
5 years ago
matejcik 49931007e7 tests: fix grid34
5 years ago
matejcik 370b2c4c49 tests: add click-based recovery test
5 years ago
Pavol Rusnak 4bae47ea6d
tests: add multisig marker
5 years ago
Tomas Susanka 8f34b4c5de
Merge pull request #628 from trezor/tsusanka/sdprotect-fix
5 years ago
Tomas Susanka bfa5047012 tests/upgrade tests: patch emulators on NixOS
5 years ago
matejcik 6a1a94ac6a tests: add wipe test for sd_protect
5 years ago
matejcik ccd1940ea8 tests: more assertions on sd_protect
5 years ago
matejcik d9efd92c0a tests: error-out sd_card tests without SD card
5 years ago
Tomas Susanka b530e7c105 ci: add fido2 tests to ci
5 years ago
Tomas Susanka 92e23a2d06 tests: add sd_card marker and improve sd test
5 years ago
Andrew Kozlik 1ca1d77bf7
tests/sign_tx: Add a test to ensure that if the change output is modified after the user confirms the transaction, then signing fails.
5 years ago
Andrew Kozlik 564b24191e debug: Add left and right swipe direction to DebugLinkDecision message and unify terminology around swipe direction.
5 years ago
matejcik 47a21ceebc tests: update Stellar XDR Builder instructions
5 years ago
Tomas Susanka efb3eef0c4 tests/stellar: add hex to stellar operations signatures
5 years ago
ciny 79fedfd389 tests: enable nobackup tests for T1
5 years ago
matejcik 45665bde23 tests: parametrize reset/backup tests
5 years ago
ciny a8f2f7b1e3 tests: expand backup device tests
5 years ago
Tomas Susanka 6b8f63c624 docs: improve tests documentation
5 years ago
matejcik 3c62db2696 stellar: fix ManageDataOp value padding
5 years ago
matejcik 97a5fd14b6 tests: reformat stellar test
5 years ago
matejcik 1c53c2bdf2 core/recovery: allow changing word count again (fixes #554)
5 years ago
Andrew Kozlik de74750569 core: Show success and failure dialogs in change-pin.
5 years ago
matejcik 25f5dd8bdd tests: add check that backup succeeded
5 years ago
matejcik b30d9f6897 tests: add backup test for SLIP39 Basic
5 years ago
matejcik 78ecc38b1b core: fix BIP39 backup
5 years ago
matejcik 2e3cd6e654 tests: add reset-recovery test for BIP39
5 years ago
matejcik 65c1afa728 tests: add TT change pin test (fixes #228)
5 years ago
matejcik 4eb98c254a tests: only allow input_flow in a with-block
5 years ago
Tomas Susanka cefb1cf4fd core: refactor slip39
5 years ago
Andrew Kozlik 262434ea1b python/tests: Add SD protection device test.
5 years ago
Pavol Rusnak 8d2b32332b
tests: increase timeout for emulators to 30s
5 years ago
Andrew Kozlik ad2dc544a7 tests: Add credential management device tests.
5 years ago
Pavol Rusnak de011fa069
tests: update u2ftest to auto-confirm when needed
5 years ago
Pavol Rusnak 683ae579d1
tests/fido2-tests: cleanup u2f-tests-hid
5 years ago
Pavol Rusnak 6cfb640da6
tests: fix failure code in U2FTest
5 years ago
Pavol Rusnak ca4581ce74
tests: add fido-tests/u2f-tests-hid
5 years ago
Tomas Susanka 75c539ec55
all: replace /bin/bash with /usr/bin/env bash
5 years ago
matejcik 8c08527f50 tests: cleanup conftest.py
5 years ago
matejcik 6e4921c030 tests: finish extracting common functionality for emulators
5 years ago
matejcik 643122b651 tests: harden upgrade test
5 years ago
matejcik 5e369e057a tests: remove unused parts of common.py
5 years ago
matejcik e89a913b1b tests: fix relative imports
5 years ago
matejcik e3ceef2af6 tests: drop all explicit conftest references
5 years ago
matejcik 56f5f73550 tests: drop TrezorTest class
5 years ago
matejcik b7ba306a46 tests: start moving common functions to top level
5 years ago
Pavol Rusnak 9898b9f208
tests/device_tests: don't wait forever for emulator to start listening
5 years ago
Pavol Rusnak 775f5b4e66
tests: check reported version of the emulator in the upgrade_tests
5 years ago
Pavol Rusnak ee84450fe7
tests: use appropriate env variables to set emulator profile dir
5 years ago
matejcik 885a21ab36 tests: add missing licence headers
5 years ago
matejcik e31a499702 tests: check all combination of Shamir shares in reset-recovery test
5 years ago
matejcik 7be9bcac79 tests: extract more common functionality
5 years ago
matejcik 8814837a9e ci: split "test upgrade" for core and legacy (fixes #501)
5 years ago
Pavol Rusnak 40eabf9012
tests: fix test_msg_binance_sign_tx.py
5 years ago
Tomas Susanka 33cc147c66 tests: fix loaddevice test
5 years ago
Tomas Susanka 798ee4a83f tests: enable load_device test for core
5 years ago
Tomas Susanka 41b76f4f31 tests: move enter_all_shares recovery function to common
5 years ago
Pavol Rusnak 74b734fd66
tests: be consistent
5 years ago
matejcik 5b8f542436 python: do not accept bytes for str protobuf fields
5 years ago
matejcik 2d4b23d64a fixup! tests: convert from self.client to the client fixture
5 years ago
matejcik 122f6c8085 tests: update shamir tests for setup_client markers
5 years ago
matejcik 8e1d5374b1 tests: drop methods from TrezorTest class
5 years ago
matejcik 871a68e0be tests: improve ethereum tests
5 years ago
matejcik e0f55be7a6 tests: convert from self.client to the client fixture
5 years ago
matejcik eee02dd3f8 tests: make mnemonics top-level
5 years ago
matejcik 4b2235ab78 tests: convert setup_client to a marker
5 years ago
matejcik 1e4cf8d801 tests: make altcoin check prettier
5 years ago
matejcik 77d4f02b3a tests: make use of input_flow in test_cancel
5 years ago
Tomas Susanka fd53c72a3c
Merge pull request #428 from trezor/ciny/super_shamir
5 years ago
ciny 81f5cbef93 core + tests: Super shamir reset and recovery UI and tests
5 years ago
Tomas Susanka 077735f57b ci: introduce upgrade tests
5 years ago
matejcik 2022c39ef9 core/ethereum: add support for wanchain slip44 id (#440)
5 years ago
Pavol Rusnak b1f435e178
ci: test BITCOIN_ONLY firmware
5 years ago
Pavol Rusnak 16431f6c93
tests: add one more altcoin marker
5 years ago
Pavol Rusnak 84abde1f79
tests: add import pytest where required
5 years ago
Pavol Rusnak fee1ee034b
tests: mark altcoin related tests with "altcoin" pytest marker
5 years ago
Pavol Rusnak c6b9fa4873
legacy: support Signify Ed25519 signatures + add device test
5 years ago
Roman Zeyde 93382a10f5
tests: test Elements explicit addresses (p2pkh, p2sh and bech32)
5 years ago
Tomas Susanka 542f156b4f core/slip39: remove _encrypt
5 years ago
Tomas Susanka 1b666804c0 core/shamir: fix EMS vs MS
5 years ago
matejcik 0312fb264b tests: fix reference to ckd_public
5 years ago
matejcik 0470cf9865 tests: move burn tests to root
5 years ago
matejcik 842fde455c tests: improve debug-trezor detection
5 years ago
matejcik 37f8cbd403 tests: add flakiness to bip32_speed test
5 years ago
matejcik eb6f6dd572 tests: move tx_cache impl
5 years ago
matejcik b4fa6f2a7f tests: move device tests to top-level
5 years ago
matejcik e5670856a2 MONOREPO CREATE FROM trezor-core
5 years ago
Tim Ruffing 52d34955e7 embed/extmod/modtrezorcrypto: add secp256k1_zkp module
5 years ago
Dusan Klinec 8530d05ebe
tests: minor monero script test fix, quotes
5 years ago
Tomas Susanka c55b655325
Merge pull request #541 from ph4r05/pr/monero-bin-test
5 years ago
Dusan Klinec 1398e7a0cb
tests: monero binary test added
5 years ago
Ciny 2227fc60b8 src/apps/wallet: display custom locktime confirmation (#540)
5 years ago
Tomas Susanka b84d0e8452 paths: disallow special ed25519 curves
5 years ago
Tomas Susanka 8aa60e6cfd paths: validate curve as well
5 years ago
Vladyslav Burzakovskyy 7e5ab98303 tests/run_tests.sh: show the number of passed and failed tests
5 years ago
Roman Zeyde 6a54839acb tests: allow running tests from any directory (#487)
5 years ago
Dusan Klinec bba8bf38eb
xmr: hf10 upgrades
5 years ago
Tomas Susanka 7e3673ad26 common: remove coins.by_address_type because there are conflicts
5 years ago
Andrew Kozlik 69efeac015
tests: Limit the APP values in test_trezor.config to 1, ..., 63
5 years ago
Andrew Kozlik fd6eb333a6
src/apps/common/storage: allow U2F counter to be written even when storage is locked
5 years ago
Andrew Kozlik 6afd9b1d09
tests: Do not require storage to be unlocked prior to calling storage_change_pin(). The function checks the old PIN anyway.
5 years ago
andrew 1d43f9bea2
Delete the U2F counter if it's set to None.
5 years ago
andrew 4cea4d2a4a
Implement efficient counter in storage.py.
5 years ago
andrew 9f75d342a4
Add trezor-storage submodule. Update modtrezorconfig to work with the new storage_get() interface. Update tests to expect None instead of bytes(), when the value is not found in the storage.
5 years ago
Dusan Klinec ab9ab25355
xmr: get_tx_keys, live_refresh
5 years ago
Pavol Rusnak 6974d037a9
src/apps/wallet/sign_tx: implement tx.branch_id field
5 years ago
Tomas Susanka 1946a9f93e eth: modify sign/verify functions to accept addresses as strings
5 years ago
Tomas Susanka ccd79ca324 eth: get public key
5 years ago
Tomas Susanka fbd348ee8e tests/ripple: test payment's destination tag
5 years ago
Pavol Rusnak be833053a9
game: move game files to src_game
5 years ago
Pavol Rusnak fb495a6afc
tests/examples: update 2048 code
5 years ago
Jan Pochyla 7730533dde seed: use lazy seed derivation, wipe after the workflow ends
6 years ago
Jan Pochyla 931e549c92 tests: eth RSK -> RBTC
6 years ago
Jan Pochyla 852bf8f4ef wallet: use keychain API in signing, fix tests
6 years ago
Jan Pochyla 7448030843 wallet: remove "import *" from sign_tx
6 years ago
Jan Pochyla 9ecd123bd5 seed: add support for key namespaces
6 years ago
Tomas Susanka f3c401a5c9 wallet: do not validate script type in sign message function
6 years ago
Tibor Arpas ea4610afd2 Fixing make test_emu in some environments.
6 years ago
Jan Pochyla 1782b0273c
Merge pull request #341 from trezor/tsusanka/paths
6 years ago
Pavol Rusnak 10a284f6ee
src/apps/wallet/sign_tx: make check for OMNI more strict
6 years ago
Pavol Rusnak 4693c071b4
src/apps/wallet/sign_tx: implement OMNI parsing in OP_RETURN layout
6 years ago
Tomas Susanka 31f987e988 coins: validate derivation paths
6 years ago
Pavol Rusnak 0ff7034e37
embed/extmod/modtrezorconfig: refactor PIN UI wait callback (#398)
6 years ago
Jan Pochyla b9926a9fff utils: simplify HashWriter interface
6 years ago
Pavol Rusnak c8ad355032
cardano: add low-level support for passhrase
6 years ago
Dusan Klinec 6724e4e409
xmr: master merging commit
6 years ago
Pavol Rusnak 8177ad6128
tests: add one more zcash zip243 test
6 years ago
Pavol Rusnak e2d405aa0a
src/apps/wallet/sign_tx: update ZIP243 Sapling code
6 years ago
Pavol Rusnak e16a8fc8c9
src/apps/wallet/sign_tx: refactor Zcash, add WIP ZIP243; use ensure instead of assert where possible
6 years ago
Pavol Rusnak 2277a9c754
src/apps/wallet/sign_tx: re-enable Decred
6 years ago
Pavol Rusnak 6bcf589841
build: fix build
6 years ago
Adrian Matejov 8b252bff80 tezos: fixed nitpicks
6 years ago
Adrian Matejov 2750d668ad tezos: added tezos cryptocurrency
6 years ago
Pavol Rusnak d0f2905542
embed/extmod/modtrezorcrypto: refactor pbkdf2 prf
6 years ago
Pavol Rusnak 5efab07b23
cardano: remove GetPublicKey.root_hd_passphrase, style changes
6 years ago
Dušan Plavák 060a8cbdfd cardano: replace derivation scheme v1 for v2 (#342)
6 years ago
Tomas Susanka 7128337031 cardano: remove sign/verify unit tests
6 years ago
matejcik 9a2be54e94 nem: update test to expect the right name
6 years ago
Jan Pochyla f7c1465d57 apps: unify common writer logic
6 years ago
Tomas Susanka 741443165c tests/wallet: UiConfirmTotal includes fee
6 years ago
Dusan Klinec f0b8fcc106
tests: support async test cases added
6 years ago
Pavol Rusnak 1a6e0f053a
embed/extmod/modtrezorcrypto: refactor AES API, use test from NIST SP 800-38A
6 years ago
Tomas Susanka 08945c48e1 ripple: simple tx serializer; signing
6 years ago
Tomas Susanka b5c2ae49dd ripple: get address
6 years ago
jmuravsky 09ddcc7ac9 cardano: add Cardano currency support
6 years ago
Pavol Rusnak cb9e7b5885
embed: cleanup Keccak API (drop keccak arg from digest() func)
6 years ago
Tomas Susanka 7f767eec46 stellar: accounts are addresses
6 years ago
Pavol Rusnak 2d27ab85dc
tests: make acceptable delta wider in test_trezor.crypto.random
6 years ago
Jan Pochyla 22abb6d07a tests: auto-detect pytest config
6 years ago
Yura Pakhuchiy 7684db4702 Add Groestlcoin transaction signing tests
6 years ago
Yura Pakhuchiy 0f53fd16ec Add tests for Groestlcoin addresses
6 years ago
Yura Pakhuchiy c0458f71e8 Add Groestl512 hash tests
6 years ago
Yura Pakhuchiy 4237adb7cc Fix tests broken by API changes
6 years ago
Pavol Rusnak 2ee57da5d8
src/apps/wallet/sign_tx: fix last commit, add bip115 test
6 years ago
Pavol Rusnak 9f90ca21a9
src/apps/wallet/sign_tx: fix bip115 code in last commit
6 years ago
idimon4uk 3b345f3c76 src/apps/wallet/sign_tx: add Zencash support (#252)
6 years ago
Pavol Rusnak 5c62180011
tests: fix coins test (there are few collissions in address_types, but for less significant coins)
6 years ago
Jan Pochyla 86461d0d6b tests: remove codec_v2 test
6 years ago
Pavol Rusnak 97bb26b7f3
embed/extmod/modtrezorcrypto: use kwargs for Blake2b/Blake2s
6 years ago
Ilan 270bf73212 Update RSKIP-60 checksum separator (#244)
6 years ago
Pavol Rusnak a6d316db25
style: make flake8 happy
6 years ago
Ilan 0c13a43518
src/apps/ethereum: implement RSKIP-60 checksum in get_address
6 years ago
Pavol Rusnak 604083ee25
tests: add test_apps.ethereum.get_address
6 years ago
Pavol Rusnak 285c845e9b
src+test: fix flake8 warning
6 years ago
Jan Pochyla b13dba115a nem: fix unit tests
6 years ago
Tomas Susanka 3422474811 nem: mosaics definitions are generated from trezor-common
6 years ago
Tomas Susanka 616d117648 nem: mosaics are checked against definition and user is asked appropriately
6 years ago
Tomas Susanka a45ac4ad4b nem: refactored to have a common message as an argument
6 years ago
Tomas Susanka 8de3cd7cac nem: refactored to directories
6 years ago
Tomas Susanka 32681972f1 nem: aggregate modification relative_change is int
6 years ago
Tomas Susanka b80a8022d0 nem: multisig
6 years ago
Tomas Susanka d54d33df3a nem: big refactoring of serialization
6 years ago
Tomas Susanka 6aef64d367 nem: compute address from pubkey
6 years ago
Tomas Susanka 4cd87d3a01 nem: mosaics canonicalization
6 years ago
Tomas Susanka d07deecc7e nem: mosaics moved to seperate file
6 years ago
Tomas Susanka 10a52d8688 nem: multisig (basic functions, unit tests)
6 years ago
Tomas Susanka 48c6686dca nem: aggregate modification
6 years ago
Tomas Susanka 2e6587ec6c nem: transaction create mosaic supply change
6 years ago
Tomas Susanka a6c406abea nem: transaction mosaic creation test
6 years ago
Tomas Susanka 2696968894 nem: transaction mosaic creation
6 years ago
Tomas Susanka 8e7ee89b02 nem: transaction serialization
6 years ago
Tomas Susanka 5dd3d1e7e5 nem: provision namespaces
6 years ago
Tomas Susanka 4827ff3a03 nem: create transfer (including mosaics)
6 years ago
Tomas Susanka b5cc678caa nem: encrypt
6 years ago
Tomas Susanka a18b398747 nem: unit test for address
6 years ago
Pavol Rusnak 7f36185ab3
tests: fix segwit tests using preimage_hash
6 years ago
Pavol Rusnak 307f7baecf
fix flake8 issues
6 years ago
Tomas Susanka bb57000449
src/trezor/crypto: add trezor.crypto.base32
6 years ago
matejcik 7b06a802bb
tests: drop nonexistent fields from TxOutputBinType
6 years ago
Pavol Rusnak 90975f6b6e
embed/extmod/modtrezorcrypto: add support to variable outlen for Blake2{b,s}
6 years ago