Commit Graph

284 Commits (75c539ec557e16f868a86c0f93a256301ef6aa7b)

Author SHA1 Message Date
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
Pavol Rusnak 577cb361dc
src/trezor/crypto: add cashaddr support
6 years ago
matejcik 003d77b209 testing: configure pytest.ini and update testing documentation
6 years ago
Tomas Susanka 55de110ee9 eth: unknown token changed to (None, None..)
6 years ago
Tomas Susanka 2d0d360944 eth: unknown token transfer is recognized and displayed as unknown
6 years ago
Jan Pochyla 3b67cb6bea tests: fix loop.select usage
6 years ago
Jan Pochyla e223173b4e loop: wait -> spawn, select -> wait
6 years ago
Tomas Susanka c827607eec tests: ethereum format_address takes int as an input
6 years ago
matejcik bd32e1e3b3 tests: set default TREZOR_PATH to the emulator
6 years ago
matejcik 5b9b904198 Makefile: pass TESTOPTS to test runners (and use them in run_tests_device_emu.sh
6 years ago
Pavol Rusnak 611d374bbd
embed: rename TREZOR_STM32/UNIX to TREZOR_MODEL_T/EMU, introduce trezor.utils.model()
6 years ago
Pavol Rusnak c7c5f55508
src/apps/ethereum: fix layout for values around 1e9 Wei
6 years ago
Tomas Susanka 20456a263a tests/unit: wire missing ubinascii import
6 years ago
Pavol Rusnak 9c7ddba217
src+tests: use flake8 F401 to detect unused imports
6 years ago
Jan Pochyla 323714dc61 src/trezor/wire: disable v2 codec
6 years ago
Pavol Rusnak be79a8cff4
src+tests: make flake8 happy; explicitly mark E722 ignores (bare excepts)
6 years ago
Jan Pochyla b88e4e5d5a signing: rely on address_n being always list
6 years ago
Jan Pochyla fa5dbadc93 src/apps/wallet/sign_tx: cleanup and split scripts/addresses
6 years ago
Tomas Susanka fb7a315208 tests: note on missing native p2wsh test
6 years ago
Tomas Susanka b7e4fe02a9 tests: multisig field set to None
6 years ago
Tomas Susanka e4423567cb signing: multisig addresses (p2sh, p2wsh in p2sh)
6 years ago
Tomas Susanka 8fbf89b7f3 signing: p2sh and witness native addresses
6 years ago
Tomas Susanka 901b0a53a1 tests/signing: threshold test fix
6 years ago
Jan Pochyla e888b6b967 apps/wallet/sign_tx: fix sighash
6 years ago
Pavol Rusnak 800c2c64c8
tests: fix trezor.config test by changing PYOPT to 1
6 years ago
Pavol Rusnak b0242d3a3e
tests: fix test_apps.ethereum.layout
6 years ago
Pavol Rusnak 585e9842f8
src/apps+tests: use TODO consistently across whole codebase
6 years ago
Tomas Susanka a306ce60c2 tests: small note at the end of output with the tests outcome
6 years ago
Pavol Rusnak 739e4f2e45
fix release_num values
6 years ago
Pavol Rusnak 27d9abe883
trezor.config: add public values (readable without unlock)
6 years ago
Pavol Rusnak 0a9d42981d
tests: fix endiannes in test_apps.ethereum.layout
6 years ago
Tomas Susanka 7d0cafecc3 ethereum/singing: layout seperated
6 years ago
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
7 years ago
Pavol Rusnak fa95f0a037
trezor.crypto: implement chacha20poly1305 aka rfc7539
7 years ago
Pavol Rusnak d6593e710b
apps.ethereum: implement SignMessage/VerifyMessage
7 years ago
Tomas Susanka 688b568bd9 ethereum: files rename
7 years ago
Tomas Susanka dc02b322bf ethereum/signing: basic structure, first test passing
7 years ago
Pavol Rusnak fe0534658f
tests: no need to include ubinascii for unit tests
7 years ago
Pavol Rusnak 333c0a633a
trezor.crypto: adopt crc32 function
7 years ago
Pavol Rusnak a9870b9e0e
tests: update how tests are being run
7 years ago
Pavol Rusnak 965bf84cdb
tests: cleanup flake8 warnings
7 years ago
Pavol Rusnak ea404b53ee
tests: simplify hashlib tests, fix trezor.config test
7 years ago
Pavol Rusnak 5e476b856e
unix: implement sdcard, add unit test
7 years ago
Pavol Rusnak e8f70ed4af
pin: implement graphics pin timeout
7 years ago
Pavol Rusnak 70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
7 years ago
Jan Pochyla 58e4a5546f wallet/signing: implement extra data hashing
7 years ago
Pavol Rusnak 626a8885ce
trezor.config: add compaction test
7 years ago
Pavol Rusnak f88080b904
Merge branch 'pin_fails'
7 years ago
Jan Pochyla 0f2a82e9f1 tests: remove useless import
7 years ago
Tomas Susanka 09f18bb444 wallet: tx weight calculator is used to determine fee
7 years ago
Tomas Susanka 272d64b9e8 wallet: tx weight exact calculator
7 years ago
Jan Pochyla 7a0bfd289b wallet/get_address: support segwit
7 years ago
Tomas Susanka 0e2bcd64e8 tests: o.address fix
7 years ago
Tomas Susanka d8a884bd87 tests: unit tests signature fixtures for segwit
7 years ago
Jan Pochyla 26265ca511 tests: enable signtx segwit tests
7 years ago
Tomas Susanka aa29667059 common: coins updated
7 years ago
Tomas Susanka 2ebf1cd9f4 trezor/crypto: bech32
7 years ago
Tomas Susanka dc6701af90 wallet/signing: native P2WPKH, P2WPKH in P2SH, scripts
7 years ago
Tomas Susanka b7b46b6980 wallet/signing: amount is checked during witness signature
7 years ago
Tomas Susanka da4bc2dc8b wallet/signing: P2WPKH in P2SH address generation based on BIP-49, PAYTOP2SHWITNESS output type
7 years ago
Tomas Susanka b7f01baf99 wallet/signing: refactoring
7 years ago
Tomas Susanka e63d0adc23 wallet/signing: segwit first test passing
7 years ago
Tomas Susanka bcef961059 wallet/signing: bip143 transactions hashing
7 years ago
Jan Pochyla 40a9ac2e29 tests: fix trezor.config test
7 years ago
Jan Pochyla 88b1222ad0 tests: ignore new segwit tests
7 years ago
Jan Pochyla 8342aa2e7d tests: enable test_msg_resetdevice.py
7 years ago
Jan Pochyla 936487a523 tests: run v1 protocol tests
7 years ago
Jan Pochyla f4ebe368b9 tests: enable load_device test
7 years ago
Jan Pochyla ce3dc61e63 tests: ignore test_cosi.py
7 years ago
Jan Pochyla f093ca23d5 tests: ignore specific tests, testpy -> test_emu
7 years ago
Pavol Rusnak 02fb442fd1
examples: add desc to 2048 source
7 years ago
Pavol Rusnak ed0d18132d
examples: add 2048 game example
7 years ago
Pavol Rusnak 1d9b907342
tests: clear display on production test start
7 years ago
Pavol Rusnak 737dc0159f
tests: implement otp read/write in production test
7 years ago
Jan Pochyla 53d191bdf1 tests/production_tests: use native modules directly
7 years ago
Jan Pochyla 0aa8cbfe51 tests/production_tests: in touch test, wait for TOUCH_START first
7 years ago
Jan Pochyla 49cc4651c2 bunch of api cleanups
7 years ago
Pavol Rusnak 81deb66f29
tests: add production test
7 years ago
Jan Pochyla aae151a0ab tests: skip multisig marker
7 years ago
Jan Pochyla 6814931457 tests: fix permissions
7 years ago
Jan Pochyla 520de105a6 tests: fix wire tests, remove msg
7 years ago
Jan Pochyla 3562ffdc54 wire: pass Context to apps
7 years ago
Jan Pochyla 552444c856 remove src/lib
7 years ago
Jan Pochyla 1f90e781d5 wire: simplify, use async codecs
7 years ago
Jan Pochyla 56ba61cedf fix remaining micropython paths
7 years ago
Jan Pochyla 403e45aacf tests: fix path to unix micropython
7 years ago
Pavol Rusnak 3a35a5a5be
tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo
7 years ago
Pavol Rusnak fe5b5c1940
tests: update to pytest, regenerate protobuf
7 years ago
Pavol Rusnak ce6dca8ed5
trezor.io: rework for new structure
7 years ago
Pavol Rusnak acb68dc429
trezor.config: rework for new structure
7 years ago
Pavol Rusnak fe672fbd09
travis: install trezor from pypi
7 years ago
Pavol Rusnak 0ee67371b8
tests: run tests in python3
7 years ago
Pavol Rusnak 3fcbf7179b
remove trezor.debug usage
7 years ago
Pavol Rusnak 5b56c805ab
tests: fix run_tests_python_trezor.sh
7 years ago
Pavol Rusnak 16c7284e98
apps.common: introduce cache module instead of caching in global variables
7 years ago
Pavol Rusnak 5e410a3b59
apps.wallet: implement GetEntropy
7 years ago
Pavol Rusnak 11154c1ab5
tests: mute both emulator and test in run_tests_python_trezor which were bloating the log extensively
7 years ago
Pavol Rusnak 9e42a45b10
crypto: update trezor-crypto, fix crypto.bip32 test
7 years ago