Commit Graph

288 Commits (f607cb25019f0bc18bae281ce294a52810fc5ec5)

Author SHA1 Message Date
Martin Milata ee64b65b26 refactor(core): call super().__init__() in subclasses
4 years ago
matejcik 4628c774aa feat(core): re-allow unknown Ethereum networks, using Ethereum or Testnet paths (fixes #1335)
4 years ago
matejcik e6a1bf840f fix(core): do not subclass `range`
4 years ago
Pavol Rusnak 50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
4 years ago
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'
4 years ago
Tomas Susanka 0053511c66 utils: introduce format_plural and move format functions to strings.py
4 years ago
matejcik 0496e49507 core/tests: fix monero runner script
4 years ago
matejcik 6cf48bf485 ci: use explicit trezor.log location
4 years ago
matejcik 22c8b2569b core: simplify monero test use of emulator
4 years ago
matejcik ec192e9406 core: use better emulator test wrappers (fixes #468)
4 years ago
Tomas Susanka 7c41b40dff
tests: introduce UI tests for core with diffs (#784)
4 years ago
matejcik d4eed4b8ff core/tests: update tests for modified slip39 API
4 years ago
Tomas Susanka 51ef963738 tests: introduce UI tests for core
4 years ago
Tomas Susanka a28f29708f ci: add junit for a nice tests overview
4 years ago
Tomas Susanka ffea791658
Merge pull request #774 from trezor/tsusanka/shamir-word-checks
4 years ago
Tomas Susanka d8e956fc6d core/recovery: change exceptions types; modifications in tests
4 years ago
Tomas Susanka 7f730cb6f9 core/recovery: refactor to exceptions
4 years ago
Tomas Susanka f4e11a9176 core/recovery: rework arguments
4 years ago
Tomas Susanka 20bcc68926 core/tests: remove utest.py
4 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