Commit Graph

334 Commits (a16fbe62374e5fd69b3bc608abefcf0b6fae31c9)

Author SHA1 Message Date
matejcik eadf8ab25f chore(core/tests): update unit tests for new APIs, drop unnecessary ones
4 years ago
matejcik 7fe5c804ff feat(core): implement BIP-32 path schemas
4 years ago
Andrew Kozlik 4a0c5c371a feat(core): In apps.bitcoin implement replacement transaction flow.
4 years ago
Andrew Kozlik bd3fe1d789 chore(core): In apps.bitcoin create a separate class for transaction information.
4 years ago
Andrew Kozlik 5fc491c597 chore(core): In apps.bitcoin move BIP143 hashing back to a separate class.
4 years ago
Martin Milata 9ed25a718a ci: handle full dependencies in shell.nix
4 years ago
Pavol Rusnak d8534b5ee6
perf(core/extmod): replace HMAC Python implementation with C
4 years ago
matejcik 0eed360037 chore: make tx type names shorter
4 years ago
matejcik 8b2e46eb2d chore(core): update unit tests to kwargs usage and new TxAck subtypes
4 years ago
matejcik 90ee5f3d38 feat!: implement protobuf required fields and default values
4 years ago
Martin Milata cff4955f93 core: implement SafetyChecks.PromptTemporarily
4 years ago
Andrew Kozlik 9774c99e90 core/tests: Fix unit tests for streamimg prev_tx after confirmation.
4 years ago
Tomas Susanka b99b8b3df3 Merge remote-tracking branch 'origin/release/2020-09'
4 years ago
matejcik e0583dd5cb all: use a specific error code for "invalid session"
4 years ago
matejcik 4909821f35 core: implement EndSession
4 years ago
Andrew Kozlik 02da5b7593 core/bitcoin: Show warning if nLockTime is set but ineffective due to all nSequence values being 0xffffffff.
4 years ago
Pavol Rusnak 0620911e46 core: allow spending coins from Bitcoin paths if the coin ...
4 years ago
Andrew Kozlik 791a74aeb2 core/tests: Add unit tests for CoinJoinApprover and CoinJoinAuthorization.
4 years ago
Andrew Kozlik 472e853f0a core/tests: Fix unit tests to work with BasicApprover in sign_tx.
4 years ago
matejcik c3afb93837 core/tests: improve test harness (fixes #1157)
4 years ago
Pavol Rusnak 063aba910d core: rename emulator to trezor-emu-core
4 years ago
Martin Milata d955e3f1e5 core: rename class Overwintered to Zcashlike
4 years ago
Martin Milata 10387e1869 core: drop zcash v3 tx signing support
4 years ago
Gabriel Kerekeš d2c1624602 Cardano shelley update 2/3 (#1112)
4 years ago
gabrielkerekes e1615e60ec Update Cardano to support Shelley era 1/3
4 years ago
matejcik b741560997 core/bitcoin: drop unused validate_path_for_bitcoin_public_key
4 years ago
matejcik 58f460627f core/tests: add unit tests for new functionality
4 years ago
matejcik a461853cf6 core/tests: fix bitcoin unit tests
4 years ago
matejcik 7befdd07e4 core/tests: update unit tests
4 years ago
matejcik 3514a31bc9 core: make USB codec resilient to OOM conditions
4 years ago
matejcik 0a758b8181 core/tests: add synchronous protobuf tests
4 years ago
Martin Milata fd117a0c9f core: raise error on auto-lock value out of range
4 years ago
Pavol Rusnak 57ae902aed
core/monero: don't download test binary even if hash is different
4 years ago
Pavol Rusnak 5d666376f0
core/monero: update tests binary
4 years ago
Andrew Kozlik 791ff3fe06 core/tests: Add unit tests for SLIP-0019 proofs of ownership.
4 years ago
Andrew Kozlik d48a372ca7 core/sign_tx: Implement support for signed external inputs.
4 years ago
Andrew Kozlik 3b6c1e5e6b core/crypto: Add functions for verifying DER encoded signatures.
4 years ago
Andrew Kozlik 99f01cd316 core/sign_tx: Check script_pubkeys of inputs.
4 years ago
Tomas Susanka a6acefbdf5 core: wipe before reset and recovery; introduce 'intialized' field
4 years ago
Tomas Susanka 56fe5adcfc Merge branch 'release/2020-06'
4 years ago
matejcik d5e45c02bb core: move base functions from "homescreen" app to "base"
4 years ago
Andrew Kozlik cb32ae2e4b core/tests: add request_meta queries to unit tests (needed for transaction streaming)
4 years ago
Andrew Kozlik 42eddf8e04 core/sign_tx: validate prevout amount in all cases
4 years ago
Tomas Susanka 445f56d387 core/bitcoin: finalize bitcoin refactor
4 years ago
matejcik aa52fc3903 core/extmod: drop unused rfc6979 module
4 years ago
matejcik 3e06f4779a core/tests: add new keychain tests
4 years ago
matejcik de9e73dcbc core/tests: update unit tests for new keychain API
4 years ago
matejcik fd9e945308 core/cardano: use caching decorators and new Keychain API for Cardano as well
4 years ago
matejcik 8c4cb58098 core: introduce caching decorators
4 years ago
Dusan Klinec 6b8fc9c894
xmr: major protocol upgrade, CLSAG support added
4 years ago
Andrew Kozlik 7370077d0c core/sign_tx: Get rid of internal TxOutputBinType messages.
4 years ago
Andrew Kozlik 9f9618944a core/sign_tx: Explicitly pass script to write_tx_input() instead of setting it in txi.
4 years ago
Andrew Kozlik 8b89a30955 core/sign_tx: Remove get_prevouts_hash(), get_sequence_hash(), get_outputs_hash() methods from signer classes, because they are only used internally.
4 years ago
Andrew Kozlik 22933587be core/sign_tx: Merge bip143 classes into signer classes.
4 years ago
Andrew Kozlik c1effcc374 core/sign_tx: Updates based on code review.
4 years ago
Andrew Kozlik c2a0f83558 core/sign_tx: Move script derivation to scripts module.
4 years ago
Andrew Kozlik d0b80bddc8 core/tests: Fix unit tests after sign_tx refactor.
4 years ago
matejcik 5885978c83 Merge branch 'release/2020-04'
4 years ago
Pavol Rusnak a7806d08d7
core/crypto: remove unused bip32.deserialize function
4 years ago
Pavol Rusnak 1695228d80
core/crypto: remove unused serialize_private function
4 years ago
matejcik bd9e15bb8c core/tests: add unit tests for prevhash writers
4 years ago
matejcik a9faa4d4ab core/tests: fix inline variant of assertRaises
4 years ago
matejcik 27f6306e1d core: introduce safer write_bytes functions
4 years ago
matejcik e2035b4972 all: drop Horizen and BIP-115 support [NO BACKPORT]
4 years ago
matejcik 27803ee8c1 all: drop overwintered field from transaction
4 years ago
Andrew Kozlik e5008eb332 core/webauthn: Remove indistinguishable credentials from the allow list.
4 years ago
Andrew Kozlik 0af0e06d5b core/webauthn: Truncate names in credential data to at most 100 bytes.
4 years ago
matejcik 3789a3372b core/sdcard: modify exception handling in fatfs
4 years ago
Andrew Kozlik e378820f7f core/webauthn: Implement support for Ed25519 signatures in FIDO2.
4 years ago
Dusan Klinec 2658e253fa xmr/bp: memory optimizations and improvements
4 years ago
Tomas Susanka 86b010a18b
Merge pull request #878 from trezor/matejcik/fatfs-corruption
4 years ago
Tomas Susanka 495a59c282 core: use wire errors instead of ValueErrors where applicable
4 years ago
matejcik 18ac4fc9ca core: update Python facing APIs
4 years ago
matejcik 9ab84d2455 core/tests: thoroughly test modified APIs
4 years ago
matejcik e9c275c24f core/sdcard: fix invalid state when filesystem mounting fails
4 years ago
Tomas Susanka 6c47bf8230 core: store multiple sessions/caches at the same time
4 years ago
matejcik 918603ad5c core: add unit test for sdcard wrapper
4 years ago
matejcik 7983fd34d6 core: fix unit tests
4 years ago
Pavol Rusnak 07cd73ce57
core: show webusb popup only in bootloader and only if firmware is not installed
4 years ago
Tomas Susanka 2c0504ad1c
Merge pull request #803 from trezor/passphrase
4 years ago
matejcik 741c0c8888 core: improve stability of Monero test runner
4 years ago
Tomas Susanka 15ed5cd19e
core: do not clear cache on ClearSession
4 years ago
matejcik 3fa99c0c6a
core/tests: add storage.cache tests
4 years ago
matejcik d4171aaedc
core/tests: extract common await_result() method
4 years ago
Tomas Susanka bf1514d1ac core/test/strings: add test for words ending with 'hsxz'
5 years ago
Tomas Susanka 0053511c66 utils: introduce format_plural and move format functions to strings.py
5 years ago
matejcik 0496e49507 core/tests: fix monero runner script
5 years ago
matejcik 6cf48bf485 ci: use explicit trezor.log location
5 years ago
matejcik 22c8b2569b core: simplify monero test use of emulator
5 years ago
matejcik ec192e9406 core: use better emulator test wrappers (fixes #468)
5 years ago
Tomas Susanka 7c41b40dff
tests: introduce UI tests for core with diffs (#784)
5 years ago
matejcik d4eed4b8ff core/tests: update tests for modified slip39 API
5 years ago
Tomas Susanka 51ef963738 tests: introduce UI tests for core
5 years ago
Tomas Susanka a28f29708f ci: add junit for a nice tests overview
5 years ago
Tomas Susanka ffea791658
Merge pull request #774 from trezor/tsusanka/shamir-word-checks
5 years ago
Tomas Susanka d8e956fc6d core/recovery: change exceptions types; modifications in tests
5 years ago
Tomas Susanka 7f730cb6f9 core/recovery: refactor to exceptions
5 years ago
Tomas Susanka f4e11a9176 core/recovery: rework arguments
5 years ago
Tomas Susanka 20bcc68926 core/tests: remove utest.py
5 years ago
Tomas Susanka faa9078c2b core/recovery: refactor word checks and add a test
5 years ago
Tomas Susanka a316347bf1 core/tests: test debug is on
5 years ago
Tomas Susanka 5677c254b1 core/tests: remove PYOPT settings
5 years ago
Andrew Kozlik 5bdd523b91 vendor: Update fido2-tests submodule to fix issues with random ordering.
5 years ago
Pavol Rusnak 0a0cd797e3
ci/tests: use new Monero tests binary
5 years ago
Pavol Rusnak cde944b565
Merge branch 'reorder-usb'
5 years ago
Tomas Susanka 20a30ae521 tests/monero: print hash of the monero binary
5 years ago
Pavol Rusnak 2652936c16
core/tests: adapt device_emu_fido2/u2f to reordered usb endpoints
5 years ago
Dusan Klinec d81f43f7a4 tests: use new monero testing binary v0.15.0.0
5 years ago
matejcik 1397bbfeb5 core/tests: fix test suite after storage move
5 years ago
Tomas Susanka c1f7239c2d ci: add click and persistence tests
5 years ago
Adrian Nagy 384275ac73
core/tezos: support the new protocol update (005-BABYLON)
5 years ago
Tomas Susanka b530e7c105 ci: add fido2 tests to ci
5 years ago
Tomas Susanka 1068acae40 core/tests: assert secret in process_slip39 test
5 years ago
Tomas Susanka 75dfcacc21 core/tests: add unit test for process_slip39 function
5 years ago
matejcik 861e999425 core: draft unit test for process_slip39
5 years ago
Pavol Rusnak 69142e56e7
core/tests: don't use curl, use wget
5 years ago
Pavol Rusnak 68513a0b39
Merge pull request #538 from trezor/andrewkozlik/fido2-signcount
5 years ago
Tomas Susanka cefb1cf4fd core: refactor slip39
5 years ago
Andrew Kozlik 315a30b42b core/webauthn: Disable FIDO2 signature counter for some relying parties
5 years ago
Pavol Rusnak 649d14898f
core/tests: remove also sdcard files in test runner
5 years ago
Andrew Kozlik a5f5a1709f core/tests: Increase sleep to 30 after emulator launch to allow for FatFS.mkfs.
5 years ago
Andrew Kozlik 6350b1c61c core: Implement SD card protection.
5 years ago
Pavol Rusnak 69d936a390
core: remove unused script
5 years ago
Pavol Rusnak 650db2a5c0
ci: add u2f tests to CI
5 years ago
Pavol Rusnak 9414a2b2f5
tests: fix file permissions
5 years ago
Tomas Susanka e4c8cb1315
core: move public_key_to_wif to helpers
5 years ago
Tomas Susanka adedb7df97
core: remove underscores in symbols used externally
5 years ago
Pavol Rusnak 2711ce2a3d
Merge pull request #394 from trezor/andrewkozlik/fido2-squashed
5 years ago
Tomas Susanka 75c539ec55
all: replace /bin/bash with /usr/bin/env bash
5 years ago
Andrew Kozlik 5020ae9757 core/tests: Test SLIP-0022 FIDO2 credential decode.
5 years ago
Milan Rossa f962a18785
core: enhance testing runners
5 years ago
Pavol Rusnak d40b7c0385
core/modtrezorio: enable LFN+Unicode in FatFS
5 years ago
Pavol Rusnak aa8d14c0ea
core/modtrezorio: add FatFS support
5 years ago
Pavol Rusnak ecceed018e
core/tests: make binance sign_tx test vector more readable
5 years ago
Luke Plaster 3eff86d17b core: fix the "coin" blueprint (#488)
5 years ago
Roman Zeyde 680e18a4ba core/seed: add SLIP-0077 derivation to Keychain (#398)
5 years ago
Pavol Rusnak 32edf7b6b9
core: fix unit tests for Bitcoin only firmware
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 e1f0c238cf
core: fix utils.format_amount for negative amounts
5 years ago
Pavol Rusnak 876ba5f590
tests: make path to tested binary configurable
5 years ago
Roman Zeyde 5b3427a21d core: ensure multisig (m,n) parameters are valid (#423)
5 years ago
Marius Kjærstad 1d6ea33ec6 docs: switch http to https in links (#419)
5 years ago
Tomas Susanka 1b666804c0 core/shamir: fix EMS vs MS
5 years ago
matejcik eaf1e940a8 build: update test runners for new paths
5 years ago
Andrew Kozlik 0a594ea1e9
Merge pull request #280 from trezor/andrewkozlik/slip-0021
5 years ago
matejcik aa9860fdb7
protobuf: add enum value validation (#363)
5 years ago
Ciny 90b91a7fb5 #28 - binance implementation (#189)
5 years ago
Andrew Kozlik c1c23cb5cb core/tests: Add more tests for Cardano with SLIP-0039.
5 years ago
Pavol Rusnak 529ec95c93
core: fix unit tests for omni
5 years ago
Andrew Kozlik 217c910b4b cardano: Implement SLIP-0023 and add SLIP-0039 support for Cardano.
5 years ago
Andrew Kozlik 5d561a0e53 core/tests: Fix Keychain usage in test_apps.wallet.signtx.fee_threshold.
5 years ago
andrew 5f604b5fea core/seed: Add SLIP-0021 implementation and tests.
5 years ago
Tomas Susanka 46e4c02602 core: refactor storage
5 years ago
Tomas Susanka 10e5ec6135 core/slip39: generate and store slip39 identifier during reset
5 years ago
Tomas Susanka 80f8f7900d core: add slip39 support to reset and recovery device
5 years ago
Pavol Rusnak e432c37df0
core/sdcard: read/write now don't return bool, but rather throw an Exception instead
5 years ago
Pavol Rusnak 4938fb5461
core/tests: rename trezor.io.sdcard test, don't use assert in tests directly
5 years ago
Pavol Rusnak 2d8e11e827
core/tests: expand slip39 test_error_location
5 years ago
Andrew Kozlik 84d3723ee9 slip39: Add RS1024 error locator function.
5 years ago
Andrew Kozlik 0e277dfcb0 core/slip39: Fixed a bug when generating shares with group_threshold = 1.
5 years ago
Tomas Susanka 83a5ae3def ci: download monero tests binary in docker
5 years ago
Andrew Kozlik 31506d81e9
core/cbor: move CBOR from cardano to common
5 years ago
Roman Zeyde b538eb3375
core/secp256k1_zkp: refactor API into a Context class
5 years ago
Tomas Susanka 412efcd35e tests: remove progress bar from curl
5 years ago
Jan Pochyla 0b03794fee core/tests: disable fading, improve runners
5 years ago
Pavol Rusnak f7053d96fe
all: remove extraneous whitespace
5 years ago
Pavol Rusnak 07ce935725
core/eos: revert new pubkey format
5 years ago
Pavol Rusnak 9460ac425a
core/eos: fix pubkey unit test
5 years ago
Pavol Rusnak 0568379f8d
core/tests: disable over_fee_threshold test
5 years ago
Pavol Rusnak b31092a874
core/tests: don't use coins.by_shortcut
5 years ago
matejcik b69a9e768b core: fix ethereum test
5 years ago
Konnor Klashinsky fe65a70dce Do not display token values in Wei for low-decimal value tokens (#141)
5 years ago
Dusan Klinec f767f890cd tests: new monero binary added
5 years ago
matejcik 2e578572dd add EOS support
5 years ago
Andrew Kozlik bebce78881 core/slip39: Update code logic, tests and test vectors in accordance with the new requirement that the number of shares provided is equal to the threshold.
5 years ago
Andrew Kozlik ff594753e0 core/tests/slip39: Add tests for invalid threshold.
5 years ago
Andrew Kozlik edab43234d core/slip39: Disallow creating multiple member shares with member threshold 1. Add tests for invalid parameters to generate_mnemonics().
5 years ago
Andrew Kozlik 0c3dde6464 tests: Update SLIP-0039 test vectors.
5 years ago
Andrew Kozlik e631983d6d Merge remote-tracking branch 'origin/master' into andrewkozlik/slip0039
5 years ago
Pavol Rusnak 914ac8a2bd
core: fix unit tests
5 years ago
Adrian Nagy da7bb8abf8 fix path validation and update unit tests
5 years ago
Andrew Kozlik d2a399debf Merge remote-tracking branch 'core-local/andrewkozlik/slip0039' into andrewkozlik/slip0039
5 years ago
matejcik e5670856a2 MONOREPO CREATE FROM trezor-core
5 years ago