Commit Graph

1122 Commits (decode_bytes)

Author SHA1 Message Date
Andrew Kozlik 50c08274b9 core/sign_tx: Move overwintered functionality to separate class.
4 years ago
Andrew Kozlik c190eed7fc core/sign_tx: Move non-Bitcoin functionality to Bitcoinlike class.
4 years ago
Andrew Kozlik 613c81ea66 core/sign_tx: Refactor wallet_path functions and input_check_multisig_fingerprint.
4 years ago
Andrew Kozlik 0d9984671e core/sign_tx: Fix typing.
4 years ago
Andrew Kozlik 79c60615de core: Fix typing.
4 years ago
Andrew Kozlik ba8b34b2d7 core: Refactor signing.
4 years ago
Pavol Rusnak 066866488b
core: add temporary "src1" folder
4 years ago
matejcik a623799a11 core: remove f-strings from headertool (python 3.5 compatibility)
4 years ago
Pavol Rusnak 25cc836660
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
4 years ago
Tomas Susanka 20d66adddd core: disable passphrase_always_on_device when turning off passphrase
4 years ago
Tomas Susanka 47f104bceb core, legacy: bump versions
4 years ago
Pavol Rusnak 4b5a84eab7
core+legacy: update changelogs
4 years ago
Ondřej Vejpustek c461692f3a core: implement random delay interrupts
4 years ago
Ondřej Vejpustek d5bfe6b32f crypto: add chacha_drbg
4 years ago
matejcik 72cde5a57d core: disallow parsing options after command (fixes #951)
4 years ago
matejcik 5885978c83 Merge branch 'release/2020-04'
4 years ago
Andrew Kozlik 9e4a8ca785 core/webauthn: Improve error codes for uninitialized device. Return ERR_OPERATION_DENIED only upon user decline or timeout, otherwise it cancels the operation on all connected authenticators.
4 years ago
matejcik 2ccebd3175 core: raise SystemExit when exitting emulator (now that sys.exit is removed)
4 years ago
matejcik 4bddeefea0 core: unify mpconfigports for emulator and board
4 years ago
matejcik d0f709b8cc core: fix and use MAKEMODULEDEFS instead of explicit registration
4 years ago
matejcik a6976355c3 core: remove readline from built firmware
4 years ago
Dusan Klinec 25b6e9058f xmr: proto - add fields for protocol optimization
4 years ago
Andrew Kozlik bc4e8eaa16 core/webauth: Update readme with Ed25519 algorithm and certificates.
4 years ago
Pavol Rusnak 197218338a
Merge pull request #936 from trezor/rework-serialize-deserialize
4 years ago
matejcik eec0615444 core: drop sys.pyi from mocks (fixes #934)
4 years ago
Andrew Kozlik c57bc62a05 core/tools: Add attestation certificate generator for FIDO2.
4 years ago
Andrew Kozlik fca92d7344 core/webauthn: Update attestation certificate to comply with WebAuthn requirements.
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
Pavol Rusnak f07ff17fad
core/crypto: add missing field to Blake2b constructor
4 years ago
Andrew Kozlik 25a39ea729 core/webauthn: Fix handling of interleaving frames to comply with the U2F HID specification.
4 years ago
jagdeep sidhu e58c5f63d5
common/defs: update SYS (#928)
4 years ago
Tomas Susanka 0b7a8449f8 core: style
4 years ago
Tomas Susanka bf20537f41 core: add option to omit cancel button in HoldToConfirm; add it to reset
4 years ago
Pavol Rusnak 336a417233 core/bootloader: distinguish between a vendor change and downgrade with wipe
4 years ago
Andrew Kozlik 8ae0535e69 core/webauthn: Fix attestation statement format to use a list in the x5c field.
4 years ago
Tomas Susanka aa71c20f2c core: require hold to confirm
4 years ago
Ondrej Mikle 634ed5aabc
core: commands for flashing via JLink (#911)
4 years ago
Tomas Susanka 025436db47 core/changelog: add FIDO2's Ed25519
4 years ago
Tomas Susanka f786d75a6f core: drop obsolete check for ANYONECANSPEND segwit outputs
4 years ago
Tomas Susanka d0d41c884e legacy: move script type checks to separate functions and unify with core
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 da89a17ce5 all: add checks for prev_hash size
4 years ago
matejcik c15519f707 core/sign_tx: modify get_tx_header to avoid writing unchecked bytes
4 years ago
matejcik 9cab61fbd3 core/sign_tx: remove write_bytes_unchecked where appropriate
4 years ago
matejcik 27f6306e1d core: introduce safer write_bytes functions
4 years ago
matejcik 9a5f6b025a core/tezos: factor out writing Michelson instructions
4 years ago
matejcik 694f714719 core/ripple: rename write_bytes to avoid name collision
4 years ago
Tomas Susanka 64584e271c legacy, core: add and unify validation checks
4 years ago
matejcik ffdb299c61 all: drop Capricoin support [NO BACKPORT]
4 years ago
matejcik adea7d6b35 all: make timestamp mandatory on timestamp-enabled coins
4 years ago
matejcik e2035b4972 all: drop Horizen and BIP-115 support [NO BACKPORT]
4 years ago
matejcik 6f9c6361ea core: remove negative_fee and cashaddr_prefix from bitcoin-only fw
4 years ago
matejcik 7d5771911c core: flip condition for force_bip143
4 years ago
matejcik ed464f3d47 all: ensure expiry, timestamp and extra_data are blocked as appropriate
4 years ago
matejcik 27803ee8c1 all: drop overwintered field from transaction
4 years ago
matejcik c9fd3f77a5 all: add overwintered field to coin specification
4 years ago
Pavol Rusnak 817b922850 all: add extra_data and timestamp fields to coin specification
4 years ago
matejcik 136307bcae core: propagate coin info to all sanitize functions
4 years ago
matejcik 303c05aba7 core/sign_tx: check if prev_tx has enough outputs to match prev_index
4 years ago
Andrew Kozlik a34637c0f2 core/sign_tx: Check multisig fingerprint before signing inputs.
4 years ago
Tomas Susanka 163220e4b7 core/wallet: properly check decred input
4 years ago
Ondřej Vejpustek 6274cfdf8b core: remove unreachable zcash code
4 years ago
Ondřej Vejpustek d61181d7e8 core: fix transaction header for mixed segwit inputs
4 years ago
Tomas Susanka f0a39df75d core/wallet: check inputs and outputs right after receiving them
4 years ago
Tomas Susanka 0903159d9b core, legacy: make sure OPRETURN ouput is not marked as change
4 years ago
Tomas Susanka 4af9aa547e core: forbid unnecessary fields in OPRETURN output
4 years ago
Andrew Kozlik d800fcbf9f core/sign_tx: If there is a non-multisig input, then change output cannot be multisig.
4 years ago
Andrew Kozlik b3cd760df0 core/webauthn: Disable CTAPHID_WINK function.
4 years ago
Andrew Kozlik e5008eb332 core/webauthn: Remove indistinguishable credentials from the allow list.
4 years ago
Andrew Kozlik cda9de8dd1 core/webauthn: Add maxCredentialCountInList and maxCredentialIdLength to authenticatorGetInfo response.
4 years ago
Andrew Kozlik 0af0e06d5b core/webauthn: Truncate names in credential data to at most 100 bytes.
4 years ago
matejcik ccffefd667 core/boot: do not catch OSError in boot wait
4 years ago
matejcik f6f041e269 core/sdcard: also catch OSError in the formatting phase
4 years ago
matejcik 3a71a5a05c core/sdcard: show "Wrong SD card" when unlocking SD protect with unformatted card
4 years ago
matejcik 3789a3372b core/sdcard: modify exception handling in fatfs
4 years ago
Andrew Kozlik 8ee0026637 core: Allow PIN entry even when SD protect is enabled and the card is not present.
4 years ago
Andrew Kozlik bfd834d1de storage: Add storage_ensure_not_wipe_code().
4 years ago
Konnor Klashinsky 70a1f957ed
Fix BackupDevice layout on 18-word seed wallets
4 years ago
Andrew Kozlik 2f905a1157 core/webauthn: Add algorithm and curve to WebAuthnListResidentCredentials response.
4 years ago
Andrew Kozlik f610787f8d core/webauthn: Clean up bytes/bytearray typing around uctypes.
4 years ago
Andrew Kozlik e378820f7f core/webauthn: Implement support for Ed25519 signatures in FIDO2.
4 years ago
Pavol Rusnak 624b639ba8
Merge pull request #886 from trezor/onvej-sl/monero-optimizations-squashed
4 years ago
Tomas Susanka f8de140271 core: add cancel to hold to confirm dialogs
4 years ago
Dusan Klinec 2658e253fa xmr/bp: memory optimizations and improvements
4 years ago
Tomas Susanka 21676a0662 ore/tezos: better wording in delegation cancel
4 years ago
matejcik 7f91bc571c core: ensure default task restarts after a passphrase workflow (fixes #883)
4 years ago
Tomas Susanka 5ee6e56f56
Merge pull request #880 from trezor/tsusanka/sign-verify-ui
4 years ago
matejcik bd9663af79 common/defs: update token reference, add new tokens to 2.3.0/1.9.0, regenerate coins_details
4 years ago
Tomas Susanka 86b010a18b
Merge pull request #878 from trezor/matejcik/fatfs-corruption
4 years ago
Tomas Susanka c8b7d3fb56 core/changelog: SD card protection is part of 2.3.0
4 years ago
Tomas Susanka a63e6fc4ef core+legacy: update changelogs
4 years ago
Tomas Susanka a8af9feebe core: fix text overflow in some dialogs
4 years ago
Tomas Susanka 744c32991f core: unify sign/verify functions
4 years ago
Tomas Susanka b317613d63
Merge pull request #874 from trezor/tsusanka/test
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 b24411b900 core/sdcard: unmount instance when powering off sdcard
4 years ago
matejcik c81be584fb core/fatfs: ensure functions can only be called on a mounted filesystem
4 years ago
matejcik fa746e2990 core/fatfs: rework low-level FatFS API
4 years ago
Pavol Rusnak c896f02eb3
core/boardloader: use SRAM as SD card read buffer
4 years ago
Andrew Kozlik 2133f7cf29 core: Prevent data loss when writing to USB VCP.
4 years ago
matejcik b916072389 common: restore PassphraseAck.state
4 years ago
matejcik d7b9582386 core/sdcard: add ensure_filesystem option (fixes #868)
4 years ago
matejcik e9c275c24f core/sdcard: fix invalid state when filesystem mounting fails
4 years ago
Pavol Rusnak 39ce100608
Merge pull request #864 from trezor/prusnak/bootloader-text-break
4 years ago
Tomas Susanka 6c47bf8230 core: store multiple sessions/caches at the same time
4 years ago
Pavol Rusnak 562671401e
Merge pull request #860 from trezor/prusnak/multisig-show-yours-others
4 years ago
matejcik 918603ad5c core: add unit test for sdcard wrapper
4 years ago
matejcik 7983fd34d6 core: fix unit tests
4 years ago
matejcik 4ed6487a19 core/sdcard: add out-of-bounds checks to emulator
4 years ago
matejcik ddee77ecb6 core: add SD clearing via debuglink
4 years ago
matejcik d0b1b171f1 core/sdcard: ensure emulator initializes the SD card when first needed
4 years ago
matejcik 5bd8d9b5bb core/sdcard: make allocating new SD card for emulator fast
4 years ago
matejcik 1e9352b9e0 core: add SD format dialog, generalize sdcard usage
4 years ago
matejcik 5bac85f260 core: use filesystem wrapper instead of the ensure_filesystem decorator
4 years ago
matejcik d08942be4a core: introduce filesystem wrapper
4 years ago
matejcik b2084a19be core/trezorio: move sdcard functions to a submodule
4 years ago
matejcik 30529d218d core/sdcard: change SDCard methods to plain functions
4 years ago
matejcik 06b89c57c5 core/sdcard: return proper disk status flags to fatfs
4 years ago
Tomas Susanka ff1bb67abc common: return the PasshraseType button request
4 years ago
Pavol Rusnak dc66bbe3d5
core/bootloader: split long vendor string
4 years ago
Pavol Rusnak 74802a107e
core/modtrezorui: add display_text_split
4 years ago
Pavol Rusnak c4babd3c0b
Merge pull request #846 from trezor/bootloader-read-retry
4 years ago
Pavol Rusnak 581e46ff87
Merge pull request #845 from trezor/prusnak/webusb-popup
4 years ago
Pavol Rusnak 7944c1a837
core/monero: add confirmation dialog for unlock_time
4 years ago
Pavol Rusnak a808cc9190
core/apps: await require_confirm should be called without return
4 years ago
Pavol Rusnak b9486c0b33
core: show yours/others in get_address for multisig
4 years ago
Tomas Susanka 577daf09fe tests: introduce --ui-check-missing to test/remove missing tests
4 years ago
matejcik 1d41141a1f core/emulator: properly ignore inotify problems (fixes #854)
4 years ago
Pavol Rusnak 2958a97c87
Merge pull request #830 from trezor/tsusanka/fw-upgrade
4 years ago
matejcik e61b7d28e9 all: do not send state in PassphraseAck (not needed for compatibility)
4 years ago
Pavol Rusnak 63dfd6c6ab
core/bootloader: make read more benevolent and read error more helpful
4 years ago
Pavol Rusnak 07cd73ce57
core: show webusb popup only in bootloader and only if firmware is not installed
4 years ago
matejcik 4c8c96272c emu: fix flag options with defaults
4 years ago
matejcik 271da3fa39 python: add detailed logging to emulator runner
4 years ago
matejcik c14429c445 all: shut down emulator on error_shutdown
4 years ago
matejcik d3b88a37be core: do not catch SystemExit in handle_session (#826)
4 years ago
Tomas Susanka f947fe97cc core: fix style
4 years ago
Tomas Susanka 0a13f7a441 core: properly limit passphrase to 50 bytes
4 years ago
Tomas Susanka 2c0504ad1c
Merge pull request #803 from trezor/passphrase
4 years ago
matejcik 05a1d6f771 core/debug: add "show arbitrary screen" capability, for easier prototyping
4 years ago
matejcik c01d04f26e common/protob: drop a default field declaration
4 years ago
matejcik 741c0c8888 core: improve stability of Monero test runner
4 years ago
matejcik 4c9689d7a7 common: return deprecated fields to protobuf, to allow cross-version compatible code
4 years ago
Pavol Rusnak e58225fe02
core/boot: don't call mkfs in emulator
4 years ago
Pavol Rusnak fdfa64ac2a
core/ui: fix HoldToConfirm redraw
4 years ago
Pavol Rusnak 32f8f1cb61
core/embed: update fatfs to 0.14; use upstream version
4 years ago
Tomas Susanka 56dc952495 common: fix PassphraseAck.on_device id
4 years ago
Pavol Rusnak 73ed2f3450
legacy: small nitpicks related to the new passphrase handling
4 years ago
Tomas Susanka 15ed5cd19e
core: do not clear cache on ClearSession
4 years ago
Tomas Susanka fd0dc8ed66
core/passphrase: merge 'get from user' functions
4 years ago
Tomas Susanka 7d7ffe3b67
cardano: derive the root and then cache
4 years ago
matejcik 3fa99c0c6a
core/tests: add storage.cache tests
4 years ago
matejcik 938f347514
core: use DUMMY_CONTEXT constant instead of own instance
4 years ago
matejcik d4171aaedc
core/tests: extract common await_result() method
4 years ago
matejcik 1f50a13edf
core: use cache for Monero live refresh confirmation
4 years ago
Tomas Susanka b96d7cafbb
core: rework cache and fix cardano caching
4 years ago
Tomas Susanka aa6988a556
core/ui: introduce draw_simple
4 years ago
Tomas Susanka d5763d9cab
all: implement code review comments
4 years ago
Tomas Susanka f3553f63f1
common: remove PassphraseRequest.on_device completely
4 years ago
Tomas Susanka c65b57affb
core, legacy: remove passphrase_cached
4 years ago
Tomas Susanka 1343583d21
core: bump version to 2.3.0
4 years ago
Tomas Susanka 8fa0d8f098
core/passphrase: show dialog to enter the passphrase on host
4 years ago
Tomas Susanka a3f3d4fcdb
remove ping.passphrase/pin
4 years ago
Tomas Susanka b5d6aaf77c
tests: test PassphraseAck options
4 years ago
Tomas Susanka ece351c5e5
core: do not prompt for passphrase if 'always' setting is enabled
4 years ago
Tomas Susanka 466dc4732d
core/passphrase: add button requests
4 years ago
Tomas Susanka 4a0f727f13
core: fix monero
4 years ago
Tomas Susanka cd09f9ce94
all: modify passphrase source to always on device
4 years ago
Tomas Susanka eafd57c301
common, core: add passphrase entry capability
4 years ago
Tomas Susanka 90d5cdfd5b
all: rework passphrase
4 years ago
Tomas Susanka a02d7e3daf core/bootloader: request vendor header first
4 years ago
matejcik d28e33ef02 core/headertool: support generating vendor headers with explicit size
4 years ago
Pavol Rusnak 6dbed1424f
core+legacy: update nanopb api to version 0.4
4 years ago
Pavol Rusnak 3eb7775659
core/bootloader: regenerate protobuf messages
4 years ago
Pavol Rusnak 4647e7d686
core+legacy: use nanopb generator from pipenv
4 years ago
Pavol Rusnak 5bf8eca350
legacy+core: accept only valid UTF-8 strings via nanopb
4 years ago
Tomas Susanka 277e494ffa core/recovery: end dry run before showing success
4 years ago
Tomas Susanka 4850eaf534 emu.py: remove frozen variable
4 years ago
EtherCore Contributor c03caaf76a
common/defs: switch ERE logo (#808)
4 years ago
matejcik 5d052678a6 build: make sure resources are built for 'make mypy'
4 years ago
matejcik 0df3c64855 core: fix unexpected messages in debug mode (fixes #809)
4 years ago
Tomas Susanka bf1514d1ac core/test/strings: add test for words ending with 'hsxz'
4 years ago
matejcik 4e82e69070 core: add missing type annotation
4 years ago
Tomas Susanka 0053511c66 utils: introduce format_plural and move format functions to strings.py
4 years ago
matejcik 75264a07a8
Emulator launcher scripts (#796)
4 years ago
Pavol Rusnak 4868afcf51
core: add upy 1.12 to changelog
4 years ago
Pavol Rusnak 3de1b3aa54
core/embed: switch to unprivileged in main.c
4 years ago
Pavol Rusnak 7a2e0c3412
core/embed: don't call functions via supervisor if in privileged mode
4 years ago
matejcik 0496e49507 core/tests: fix monero runner script
4 years ago
matejcik a3d309eca2 core/prof: make sure coverage data is generated with absolute paths
4 years ago
matejcik e2fd2c35ff core: modify profiling wrapper to work with frozen builds
4 years ago
matejcik 6cf48bf485 ci: use explicit trezor.log location
4 years ago
matejcik 85f2e18828 core: convert emu.sh to a simple dependency-less compat wrapper
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
matejcik 2294fb0453 core: drop unused env variables (TREZOR_TEST, TREZOR_SAVE_SCREEN)
4 years ago
matejcik 8dce2cf98c core: introduce emulator runner (fixes #466)
4 years ago
matejcik 27c4c2dd50 core: do not let frozen emulator import live files
4 years ago
matejcik 29e883ab59 core/monero: fix usage of ctx.wait in pagination
4 years ago
matejcik a79279115e core: move confirm_signal evaluation into concrete Layout implementations
4 years ago
Pavol Rusnak 4b1159b94d
tools/keyctl-proxy: blue is not readable on my display :)
4 years ago
matejcik 8a5242ed0f
core/tools: make keyctl remote signing more resilient
4 years ago
matejcik 611b734d21
add Pyro4 to pipenv, and make headertool work without it
4 years ago
matejcik 3f85db1b62
core/tools: retain client handle, only ask for passphrase once
4 years ago
matejcik ccacada37c
core/tools: cleanly shut down keyctl-proxy after signing
4 years ago
matejcik e9c68d7397
core/tools: pass fw instance properly in keyctl-proxy
4 years ago
matejcik 388843f772
core/tools: make keyctl-proxy output nicer
4 years ago
matejcik 7c56a1296f
core/tools: add help texts to headertool
4 years ago
matejcik 1b04d1caa7
core/tools: drop tools obsoleted by headertool
4 years ago
matejcik 9341f0d584
core: improve building of vendor headers
4 years ago
matejcik c03ac3f8dd
core/tools: update keyctl-proxy to work with headertool
4 years ago
matejcik 5b48505b88
core/tools: fold keyctl-coordinator into headertool
4 years ago
matejcik cc29b22f91
core/tools: introduce headertool
4 years ago
matejcik fe4ef336aa
core/keyctl: get rid of serpent conversions
4 years ago
matejcik 15bd35824b
python/cosi: improve API
4 years ago
Pavol Rusnak 500156b9ba
core/embed: don't use local copy of inflate
4 years ago
Pavol Rusnak 8a36ead915
common/defs: add Faceboook to recognized apps
4 years ago
Dušan Klinec af6a607b39 common/xmr: message changes optimizing runtime and memory (#786)
4 years ago
Andrew Kozlik 289d8276eb core/fido2: check for HID timeout in send_cmd() (#791)
4 years ago
Tomas Susanka 7c41b40dff
tests: introduce UI tests for core with diffs (#784)
4 years ago
Tomas Susanka 30858c4969 tests/ui: omit the red square from screenshots
4 years ago
matejcik d4eed4b8ff core/tests: update tests for modified slip39 API
4 years ago
matejcik f90ba10af3 core: modify function signatures to match python-shamir-mnemonic
4 years ago
Milan Rossa 33b7e378c2
core/ci: add coverage target, introduce posttest stage
4 years ago
Milan Rossa 62e9ff0ad2
core: introduce coverage wrapper
4 years ago
Milan Rossa 8b31c6fcf4
core: increase stack size for unix port
4 years ago
Pavol Rusnak 9bc3af08b2
core: update mpconfigport.h from upstream (for both stm32 and unix)
4 years ago
Milan Rossa 42f1af3aa4
core: add build target for debug unix build
4 years ago
Jan Pochyla 655ec0a70c core/unix: update main.c from upy 1.12
4 years ago
Jan Pochyla 87e7d43068 core/firmware: gchelper.s moved to different directory
4 years ago
Jan Pochyla 7deade5a10 core/firmware: PendSV_Handler is defined in pendsv.c
4 years ago
Jan Pochyla ecc4313a34 core/usb: avoid naks in hid/webusb rx interfaces
4 years ago
Jan Pochyla 6afff3cc0e core/loop: remove unused code
4 years ago
Jan Pochyla f526818603 core: remove qstr blacklist
4 years ago
Jan Pochyla 5aca68e50c core: generate moduledefs.h for micropython
4 years ago
Tomas Susanka 8796ca96b9 tests/ui: rename test-screen to ui
4 years ago
Tomas Susanka 47419c7768 core/ui: simplify swipe if animation is disabled
4 years ago
Tomas Susanka 56257eb6a5 tests/ui: code review fixes
4 years ago
Tomas Susanka 3a035a0ef8 tests: save screens directly to ui_tests; introduce recorded/actual dir
4 years ago
Tomas Susanka eabd0da196 core/make; legacy: style
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